#NEWLINE# def test_d2c_attrs_strict_and_binary( self ) : #NEWLINE# #INDENT# compat = Mock ( ) #NEWLINE# compat . min . version = '4.0' #NEWLINE# compat . max . version = '12.0' #NEWLINE# self . version . compatible_apps = { #NEWLINE# #INDENT# amo . FIREFOX : compat , #NEWLINE# #UNINDENT# } #NEWLINE# self . version . is_compatible = ( False , [ 'strict' , 'binary' ] ) #NEWLINE# self . version . is_compatible_app . return_value = True #NEWLINE# doc = self . render ( impala = True ) #NEWLINE# install_shell = doc ( '.install-shell' ) #NEWLINE# install = doc ( '.install' ) #NEWLINE# assert ( install . attr ( 'data-min' ) == '4.0' ) #NEWLINE# assert ( install . attr ( 'data-max' ) == '12.0' ) #NEWLINE# assert ( install . attr ( 'data-is-compatible' ) == 'false' ) #NEWLINE# assert ( install . attr ( 'data-is-compatible-app' ) == 'true' ) #NEWLINE# assert ( install . attr ( 'data-compat-overrides' ) == '[]' ) #NEWLINE# assert ( install_shell . find ( '.d2c-reasons-popup ul li' ) . length == 2 )