mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
18 lines
416 B
Python
18 lines
416 B
Python
#!/bin/env python
|
|
|
|
import unittest
|
|
|
|
from github import Github
|
|
import GithubCredentials
|
|
|
|
class TestCase( unittest.TestCase ):
|
|
def setUp( self ):
|
|
self.g = Github( GithubCredentials.login, GithubCredentials.password )
|
|
|
|
def testAuthenticatedUser( self ):
|
|
u = self.g.get_user()
|
|
self.assertEqual( u.login, "jacquev6" )
|
|
self.assertEqual( u.name, "Vincent Jacques" )
|
|
|
|
unittest.main()
|