Пример #1
0
def get_all(user):
    """ Return all blobs.

    Args:

    Returns:
        List of Blob instances.

    """
    return Blob.get_all()
Пример #2
0
 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())
Пример #3
0
 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))