Skip to content

Commit ab54879

Browse files
committed
Use assertEqual instead of assert + ==
1 parent 82d5ea6 commit ab54879

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_link.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ def test_serialize_link(self) -> None:
192192
link = pystac.Link(pystac.RelType.SELF, href, pystac.MediaType.JSON, title)
193193
link_dict = link.to_dict()
194194

195-
assert str(link_dict["rel"]) == "self"
196-
assert str(link_dict["type"]) == "application/json"
197-
assert link_dict["title"] == title
198-
assert link_dict["href"] == href
195+
self.assertEqual(str(link_dict["rel"]), "self")
196+
self.assertEqual(str(link_dict["type"]), "application/json")
197+
self.assertEqual(link_dict["title"], title)
198+
self.assertEqual(link_dict["href"], href)
199199

200200

201201
class StaticLinkTest(unittest.TestCase):

0 commit comments

Comments
 (0)