Beispiel #1
0
 def test_get_collection_param_check(self, atom: Atom):
     with pytest.raises(AssertionError):
         atom.get_collection(1)
Beispiel #2
0
 def test_get_collection_not_found(self, atom: Atom):
     with pytest.raises(RequestFailedError):
         atom.get_collection("not valid id")
Beispiel #3
0
 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