def get_all(user): """ Return all blobs. Args: Returns: List of Blob instances. """ return Blob.get_all()
def test_blob_get_all_return_objects_blob_in_collection(self): # Act result = Blob.get_all() # Assert self.assertTrue(len(self.fixture.blob_collection) == result.count())
def test_blob_get_all_return_collection_of_blob(self): # Act result = Blob.get_all() # Assert self.assertTrue(all(isinstance(item, Blob) for item in result))