def testOctocat(self): self.assertEqual( check_repos('octocat'), { 'boysenberry-repo-1': 4, 'git-consortium': 6, 'hello-worId': 1, 'Hello-World': 3, 'linguist': 30, 'octocat.github.io': 4, 'Spoon-Knife': 3, 'test-repo1': 1 }, '\'octocat\' should return a full list of repos.')
def testEmpty(self): self.assertEqual(check_repos('Jordan884'), {}, '\'Jordan884\' should return an empty dictionary.')
def testDict(self): self.assertEqual(check_repos({'Apple': 1}), {'Input is not a string': -1}, '{\'Apple\': 1} is not a valid input.')
def testTwo(self): self.assertEqual(check_repos(2), {'Input is not a string': -1}, '2 is not a valid input.')
def testBlank(self): self.assertEqual(check_repos(''), {'User query failed; code 404': -1}, '<Blank> should fail to connect with code 404.')
def testJunk(self): self.assertEqual( check_repos('{{*JUNK*}}'), {'User query {{*JUNK*}} failed; code 404': -1}, '\'{{*JUNK*}}\' should fail to connect with code 404.')