예제 #1
0
 def test_invalid(self, query_repositories):
     """query_repository should raise an Exception when the repo is invalid."""
     with self.assertRaises(Exception):
         repositories.query_repository("not-a-repo")
예제 #2
0
 def test_invalid(self, query_repositories):
     """query_repository should raise an Exception when the repo is invalid."""
     with self.assertRaises(Exception):
         repositories.query_repository("not-a-repo")
예제 #3
0
 def test_query_repository(self, query_repositories):
     """Test with a valid repo name."""
     self.assertEquals(
         repositories.query_repository('repo1'), json.loads(REPOSITORIES)['repo1'])
예제 #4
0
 def test_query_repository(self, query_repositories):
     """Test with a valid repo name."""
     self.assertEquals(repositories.query_repository('repo1'),
                       json.loads(REPOSITORIES)['repo1'])