diff --git a/github/GithubObject.py b/github/GithubObject.py index 99884297..968926dc 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -20,7 +20,7 @@ import GithubException class _NotSetType: def __repr__(self): - return "NotSet" # pragma no cover + return "NotSet" NotSet = _NotSetType() diff --git a/github/tests/Github_.py b/github/tests/Github_.py index 149af2b8..e401a257 100644 --- a/github/tests/Github_.py +++ b/github/tests/Github_.py @@ -17,6 +17,7 @@ import datetime import Framework +import github class Github(Framework.TestCase): def testGetGists(self): @@ -107,3 +108,6 @@ class Github(Framework.TestCase): t = self.g.get_gitignore_template("C++") self.assertEqual(t.name, "C++") self.assertEqual(t.source, "# Compiled Object files\n*.slo\n*.lo\n*.o\n\n# Compiled Dynamic libraries\n*.so\n*.dylib\n\n# Compiled Static libraries\n*.lai\n*.la\n*.a\n") + + def testStringOfNotSet(self): + self.assertEqual(str(github.GithubObject.NotSet), "NotSet")