Ejemplo n.º 1
0
 def test_client_delete_snapshot(self):
     clt = self.client
     snap = fakes.FakeBlockStorageSnapshot()
     snap.delete = Mock()
     clt.delete_snapshot(snap)
     snap.delete.assert_called_once_with()
Ejemplo n.º 2
0
 def setUp(self):
     self.client = fakes.FakeBlockStorageClient()
     self.volume = fakes.FakeBlockStorageVolume()
     self.snapshot = fakes.FakeBlockStorageSnapshot()