#NEWLINE# def test_device_filter( ) : #NEWLINE# #INDENT# f = DeviceFilter ( 'DeviceVendor::APPLE_COMPUTER' , 'DeviceProduct::ANY' ) #NEWLINE# s = '\n        <device_only>\n          DeviceVendor::APPLE_COMPUTER,\n          DeviceProduct::ANY\n        </device_only>' #NEWLINE# util . assert_xml_equal ( f , s ) #NEWLINE# f = DeviceFilter ( 'DeviceVendor::APPLE_COMPUTER' , 'DeviceProduct::ANY' , 'DeviceVendor::Apple_Bluetooth' , 'DeviceProduct::ANY' , type = 'not' ) #NEWLINE# s = '\n        <device_not>\n          DeviceVendor::APPLE_COMPUTER, DeviceProduct::ANY,\n          DeviceVendor::Apple_Bluetooth, DeviceProduct::ANY\n        </device_not>' #NEWLINE# util . assert_xml_equal ( s , s )