def test_should_return_false_if_failed_update(self, mock_config, mock_auth, mock_project): self.assertFalse( post_changelog('owner', 'repo', 'my_locked_tag', 'changelog'))
def test_should_return_true_if_success(self, mock_config, mock_auth, mock_project): self.assertTrue( post_changelog('owner', 'repo', 'my_good_tag', 'changelog'))
def test_should_return_true_for_locked_tags(self, mock_auth, mock_project): self.assertTrue( post_changelog("owner", "repo", "my_locked_tag", "changelog"))
def test_should_return_false_if_bad_tag(self, mock_auth, mock_project): self.assertFalse( post_changelog("owner", "repo", "my_bad_tag", "changelog"))
def test_should_return_true_if_success(self, mock_auth, mock_project): self.assertTrue( post_changelog("owner", "repo", "my_good_tag", "changelog"))
def test_should_return_false_if_failed_update(self, mock_config, mock_auth, mock_project): self.assertFalse( post_changelog("owner", "repo", "my_locked_tag", "changelog"))