Fix test
This commit is contained in:
parent
e4ccd8b767
commit
b9d2ca8507
|
@ -1628,9 +1628,9 @@ class TestPyLast(unittest.TestCase):
|
|||
self.assertEqual(len(tags_after), len(tags_before) - 2)
|
||||
found1, found2 = False, False
|
||||
for tag in tags:
|
||||
if tag.name == "settag1":
|
||||
if tag == "settag1":
|
||||
found1 = True
|
||||
elif tag.name == "settag2":
|
||||
elif tag == "settag2":
|
||||
found2 = True
|
||||
self.assertTrue(found1)
|
||||
self.assertTrue(found2)
|
||||
|
|
Loading…
Reference in a new issue