def test_verify_repository_repo_not_in_results(self): client = Mock() client.snapshot.get_repository.return_value = { 'not_your_repo': { 'foo': 'bar' } } self.assertFalse(curator.verify_repository(client, repository="repo"))
def test_verify_repository_missing_arg(self): client = Mock() with self.assertRaises(SystemExit) as cm: curator.verify_repository(client) self.assertEqual(cm.exception.code, 1)