Skip to content

Commit 7a35e76

Browse files
committed
Make some error messages more user-friendly
1 parent 67c6139 commit 7a35e76

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

data/manufacturer_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def test_ManufacturerData(self):
4848
self.assertEqual(str, type(name))
4949

5050
self.assertNotIn(esta_id, seen_ids,
51-
"ESTA ID 0x%04x is present twice" % esta_id)
51+
("ESTA ID 0x%04x is present twice in manufacturers" %
52+
esta_id))
5253
seen_ids.add(esta_id)
5354

5455
# check that ESTA exists
@@ -79,7 +80,7 @@ def test_ManufacturerLinks(self):
7980

8081
# Check we've not seen a URL for this ID before
8182
self.assertNotIn(esta_id, seen_ids,
82-
"ESTA ID 0x%04x is present twice" % esta_id)
83+
"ESTA ID 0x%04x is present twice in links" % esta_id)
8384
seen_ids.add(esta_id)
8485

8586
# Check the link is valid

0 commit comments

Comments
 (0)