def test_parse_storage_event_unknown(self): result = events._parse_storage_event(UNKNOWN_EVENT) self.assertIsNone(result)
def test_parse_storage_event_onedata(self): result = events._parse_storage_event(ONEDATA_EVENT) self.assertIsInstance(result, OnedataEvent)
def test_parse_storage_event_s3(self): result = events._parse_storage_event(S3_EVENT) self.assertIsInstance(result, S3Event)
def test_parse_storage_event_minio(self): result = events._parse_storage_event(MINIO_EVENT) self.assertIsInstance(result, MinioEvent)
def test_parse_storage_event_unknown(self): self.assertRaises(UnknowStorageEventWarning, events._parse_storage_event(UNKNOWN_EVENT))