def test_get_collection_param_check(self, atom: Atom): with pytest.raises(AssertionError): atom.get_collection(1)
def test_get_collection_not_found(self, atom: Atom): with pytest.raises(RequestFailedError): atom.get_collection("not valid id")
def test_get_collection(self, atom: Atom, collection: Collection): result_collection = atom.get_collection(collection.get_id()) assert isinstance(result_collection, Collection) assert result_collection == collection