Esempio n. 1
0
 def test_url(self, mock_blob, mock_bucket):
     mock_blob.public_url = MagicMock()
     s = Storage()
     s.url('test.jpg')
     mock_blob.public_url.call_count == 1
Esempio n. 2
0
 def test_exists(self, mock_blob, mock_bucket):
     mock_blob.exists = MagicMock()
     s = Storage()
     s.url('test.jpg')
     mock_blob.exists.call_count == 1