예제 #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))
예제 #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)
     )
예제 #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))
예제 #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)
     )