#NEWLINE# def test_wildcards( self ) : #NEWLINE# #INDENT# model = WildcardModel ( ) #NEWLINE# obs = Observer ( model ) #NEWLINE# obs . notify = Mock ( ) #NEWLINE# model . attr1 = 1 #NEWLINE# obs . notify . assert_called_with ( 'attr1' , 1 , 0 ) #NEWLINE# obs . notify . reset_mock ( ) #NEWLINE# model . attr2 = 2 #NEWLINE# self . assertFalse ( obs . notify . called ) #NEWLINE# model . test_attr = 1 #NEWLINE# obs . notify . assert_called_with ( 'test_attr' , 1 , 0 ) #NEWLINE# model . data1 = 1 #NEWLINE# obs . notify . assert_called_with ( 'data1' , 1 , 0 )