Skip to content

Commit d2f897c

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 055f727 commit d2f897c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/test_model_component.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class TestModelAttachedText(TestCase):
352352

353353
def test_sort(self) -> None:
354354
# expected sort order: (content_type, encoding, content)
355-
expected_order = [0, 1, 2, 4, 3,]
355+
expected_order = [0, 2, 4, 1, 3]
356356
text = [
357357
AttachedText(content='a', content_type='a', encoding=Encoding.BASE_64),
358358
AttachedText(content='a', content_type='b', encoding=Encoding.BASE_64),
@@ -443,38 +443,38 @@ def test_no_params(self) -> None:
443443
def test_same_1(self) -> None:
444444
p1 = get_pedigree_1()
445445
p2 = get_pedigree_1()
446-
self.assertNotEqual(id(p1), id(p2))
447-
self.assertEqual(hash(p1), hash(p2))
448-
self.assertTrue(p1 == p2)
446+
self.assertNotEqual(id(p1), id(p2), 'id')
447+
self.assertEqual(hash(p1), hash(p2), 'hash')
448+
self.assertTrue(p1 == p2, 'equal')
449449

450450
def test_not_same_1(self) -> None:
451451
p1 = get_pedigree_1()
452452
p2 = get_pedigree_1()
453453
p2.notes = 'Some other notes here'
454-
self.assertNotEqual(id(p1), id(p2))
455-
self.assertNotEqual(hash(p1), hash(p2))
456-
self.assertFalse(p1 == p2)
454+
self.assertNotEqual(id(p1), id(p2), 'id')
455+
self.assertNotEqual(hash(p1), hash(p2), 'hash')
456+
self.assertFalse(p1 == p2, 'equal')
457457

458458

459459
class TestModelSwid(TestCase):
460460

461461
def test_same_1(self) -> None:
462462
sw_1 = get_swid_1()
463463
sw_2 = get_swid_1()
464-
self.assertNotEqual(id(sw_1), id(sw_2))
465-
self.assertEqual(hash(sw_1), hash(sw_2))
466-
self.assertTrue(sw_1 == sw_2)
464+
self.assertNotEqual(id(sw_1), id(sw_2), 'id')
465+
self.assertEqual(hash(sw_1), hash(sw_2), 'hash')
466+
self.assertTrue(sw_1 == sw_2, 'equal')
467467

468468
def test_same_2(self) -> None:
469469
sw_1 = get_swid_2()
470470
sw_2 = get_swid_2()
471-
self.assertNotEqual(id(sw_1), id(sw_2))
472-
self.assertEqual(hash(sw_1), hash(sw_2))
473-
self.assertTrue(sw_1 == sw_2)
471+
self.assertNotEqual(id(sw_1), id(sw_2), 'id')
472+
self.assertEqual(hash(sw_1), hash(sw_2), 'hash')
473+
self.assertTrue(sw_1 == sw_2, 'equal')
474474

475475
def test_not_same(self) -> None:
476476
sw_1 = get_swid_1()
477477
sw_2 = get_swid_2()
478-
self.assertNotEqual(id(sw_1), id(sw_2))
479-
self.assertNotEqual(hash(sw_1), hash(sw_2))
480-
self.assertFalse(sw_1 == sw_2)
478+
self.assertNotEqual(id(sw_1), id(sw_2), 'id')
479+
self.assertNotEqual(hash(sw_1), hash(sw_2), 'hash')
480+
self.assertFalse(sw_1 == sw_2, 'equal')

0 commit comments

Comments
 (0)