#NEWLINE# def test_affected_nodes( self ) : #NEWLINE# #INDENT# affected_node = NodeFactory ( ) #NEWLINE# AddonWikiNodeSettings . remove_one ( affected_node . get_addon ( 'wiki' ) ) #NEWLINE# assert_false ( affected_node . has_addon ( 'wiki' ) ) #NEWLINE# unaffected_node = NodeFactory ( ) #NEWLINE# assert_true ( unaffected_node . has_addon ( 'wiki' ) ) #NEWLINE# affected_nodes = list ( get_affected_nodes ( self . db , AddonWikiNodeSettings ) ) #NEWLINE# assert_in ( affected_node , affected_nodes ) #NEWLINE# assert_not_in ( unaffected_node , affected_nodes )