def test_should_not_find_bogus_hook(self): self.assertFalse( travis_utils.hook_exists(THIS_REPO+BOGUS, TRAVIS_TOKEN) )
def test_should_not_find_hooks_unauthenticated(self): self.assertFalse( travis_utils.hook_exists(THIS_REPO+BOGUS, BOGUS) )
def test_should_find_existing_hook(self): self.assertTrue( travis_utils.hook_exists(THIS_REPO, TRAVIS_TOKEN) )