Example #1
0
 def test_parse_storage_event_unknown(self):
     result = events._parse_storage_event(UNKNOWN_EVENT)
     self.assertIsNone(result)
Example #2
0
 def test_parse_storage_event_onedata(self):
     result = events._parse_storage_event(ONEDATA_EVENT)
     self.assertIsInstance(result, OnedataEvent)
Example #3
0
 def test_parse_storage_event_s3(self):
     result = events._parse_storage_event(S3_EVENT)
     self.assertIsInstance(result, S3Event)
Example #4
0
 def test_parse_storage_event_minio(self):
     result = events._parse_storage_event(MINIO_EVENT)
     self.assertIsInstance(result, MinioEvent)
Example #5
0
 def test_parse_storage_event_unknown(self):
     self.assertRaises(UnknowStorageEventWarning,
                       events._parse_storage_event(UNKNOWN_EVENT))