def test_get_revision(self): """ Test that a revision can be fetched """ reference = Gerrit(url=self.URL) revision = reference.get_revision('my-revision') self.assertIsInstance(revision, Revision)
def test_get_revision(self, mock_get_netrc_auth): mock_get_netrc_auth.return_value = ('user', 'password') reference = Gerrit(url='http://domain.com') revision = reference.get_revision('my-revision') self.assertIsInstance(revision, Revision)
def test_get_revision(self, mock_get_netrc_auth): mock_get_netrc_auth.return_value = ('user', 'password') reference = Gerrit(url='http://domain.com') revision = reference.get_revision('my-revision') self.assertIsInstance(revision, Revision)