#NEWLINE# def test_parse_filter( ) : #NEWLINE# #INDENT# f = parse_filter ( [ 'LOGITECH' , 'LOGITECH_USB_RECEIVER' ] ) #NEWLINE# s = '\n        <device_only>\n          DeviceVendor::LOGITECH,\n          DeviceProduct::LOGITECH_USB_RECEIVER\n        </device_only>' #NEWLINE# util . assert_xml_equal ( f [ 0 ] , s ) #NEWLINE# f = parse_filter ( [ '!{{EMACS_MODE_IGNORE_APPS}}' , '!FINDER' , '!SKIM' ] ) #NEWLINE# s = '\n        <not>\n          {{EMACS_MODE_IGNORE_APPS}}, FINDER, SKIM\n        </not>' #NEWLINE# util . assert_xml_equal ( f [ 0 ] , s )