def test_split_paths_missing_bucket(self): path = "myfile" bucket, file = app._split_paths(path)
def test_split_paths(self): path = "mybucket/myfile" bucket, file_path = app._split_paths(path) self.assertEqual(bucket, "mybucket", "Bucket is not expected") self.assertEqual(file_path, "myfile", "Filename and path is not expected")