tests: show expected, actual _and_ custom messages

See
https://docs.python.org/2/library/unittest.html#unittest.TestCase.longMessage

Allows showing the 42 != 69 : custom message instead of _only_ showing the
custom message if one was specified.
This commit is contained in:
Karl Palsson 2016-01-27 00:07:22 +00:00
parent e6f6122965
commit 8225089cc9
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class TestGadget0(unittest.TestCase):
def setUp(self):
self.dev = usb.core.find(idVendor=0xcafe, idProduct=0xcafe, custom_match=find_by_serial(DUT_SERIAL))
self.assertIsNotNone(self.dev, "Couldn't find locm3 gadget0 device")
self.longMessage = True
def tearDown(self):
uu.dispose_resources(self.dev)