def test_github_resolve_resolves_correctly(self):
        alice_on_github = github.GitHubAccount("1", {'login': '******'})
        alice_on_github.opt_in('alice')

        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected
Exemplo n.º 2
0
 def test_get_user_info_gets_user_info(self):
     github.GitHubAccount(self.db, "1", {'login': '******'}).opt_in('alice')
     expected = {"login": "******"}
     actual = github.get_user_info(self.db, 'alice')
     assert actual == expected