Beispiel #1
0
 def _to_dict(self):
     return_dict = {
         str(k): str(v)
         for k, v in
         BaseZIPAPI.get_human_readable_inheritors_version_dict().items()
     }
     return return_dict
    def test_zip_direct_inheritors_version_dict(self):
        """This test will fail if a new version of the ZIP API is added"""
        inheritors_version_dict = BaseZIPAPI.get_direct_inheritors_version_dict(
        )

        self.assertEqual(inheritors_version_dict[1], ZIPAPIv1)
        self.assertEqual(len(inheritors_version_dict), 1)
Beispiel #3
0
 def _to_dict(self):
     return_dict = {str(k): str(v) for k, v in BaseZIPAPI.get_human_readable_inheritors_version_dict().items()}
     return return_dict
Beispiel #4
0
 def test_zip_api_identifier(self):
     self.assertEqual(BaseZIPAPI.identifier(), 'zip')
Beispiel #5
0
    def test_zip_direct_inheritors_version_dict(self):
        """This test will fail if a new version of the ZIP API is added"""
        inheritors_version_dict = BaseZIPAPI.get_direct_inheritors_version_dict()

        self.assertEqual(inheritors_version_dict[1], ZIPAPIv1)
        self.assertEqual(len(inheritors_version_dict), 1)
 def test_zip_api_identifier(self):
     self.assertEqual(BaseZIPAPI.identifier(), 'zip')