def get_version(self, model, version): if self.validate_model(model) and self.validate_version(version): versions = Archive.get_version(Archive, model, version, self._path) return versions
def test_get_version(test_file): data = Archive.get_version(Archive, 'test', '1', test_file[:-53]) assert data == ['test']