Beispiel #1
0
 def test_other(self):
     client = Mock()
     client.snapshot.get.return_value = testvars.othersnap
     self.assertTrue(
         curator.snapshot_check(client,
                                repository='foo',
                                snapshot=testvars.snap_name))
Beispiel #2
0
 def test_other(self):
     client = Mock()
     client.snapshot.get.return_value = testvars.othersnap
     self.assertTrue(
         curator.snapshot_check(client, 
             repository='foo', snapshot=testvars.snap_name)
     )
Beispiel #3
0
 def test_in_progress(self):
     client = Mock()
     client.snapshot.get.return_value = testvars.oneinprogress
     self.assertFalse(
         curator.snapshot_check(client,
                                repository='foo',
                                snapshot=testvars.snap_name))
Beispiel #4
0
 def test_in_progress(self):
     client = Mock()
     client.snapshot.get.return_value = testvars.oneinprogress
     self.assertFalse(
         curator.snapshot_check(client, 
             repository='foo', snapshot=testvars.snap_name)
     )