Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testParseItemVersionsResponse(self):
""" Check that parsing version dict returned by format = versions works """
zot = z.Zotero("myuserid", "user", "myuserkey")
HTTPretty.register_uri(
HTTPretty.GET,
"https://api.zotero.org/users/myuserid/items?format=versions",
content_type="application/json",
body=self.item_versions,
)
iversions = zot.item_versions()
self.assertEqual(iversions["RRK27C5F"], 4000)
self.assertEqual(iversions["EAWCSKSF"], 4087)
self.assertEqual(len(iversions), 2)