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))
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) )
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))
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) )