[PATCH evemu 18/19] tests: Compare vendor id with int not str

Daniel Martin consume.noise at gmail.com
Mon Jan 6 09:38:18 PST 2014


Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
 python/evemu/tests/test_device.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/evemu/tests/test_device.py b/python/evemu/tests/test_device.py
index 4510ce7..78b42d9 100644
--- a/python/evemu/tests/test_device.py
+++ b/python/evemu/tests/test_device.py
@@ -149,7 +149,7 @@ class DevicePropertiesTestCase(evemu.testing.testcase.BaseTestCase):
         self.assertEqual(self._device.id_bustype, 3)
 
     def test_id_vendor(self):
-        self.assertEqual(hex(self._device.id_vendor), "0x1b96")
+        self.assertEqual(self._device.id_vendor, 0x1b96)
 
     def test_id_product(self):
         self.assertEqual(self._device.id_product, 1)
-- 
1.8.5.2



More information about the Input-tools mailing list