mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
16 lines
563 B
Python
16 lines
563 B
Python
import Framework
|
|
import github
|
|
|
|
class Authentication( Framework.BasicTestCase ):
|
|
def testNoAuthentication( self ):
|
|
g = github.Github()
|
|
self.assertEqual( g.get_user( "jacquev6" ).name, "Vincent Jacques" )
|
|
|
|
def testBasicAuthentication( self ):
|
|
g = github.Github( self.login, self.password )
|
|
self.assertEqual( g.get_user( "jacquev6" ).name, "Vincent Jacques" )
|
|
|
|
def testOAuthAuthentication( self ):
|
|
g = github.Github( self.oauth_token )
|
|
self.assertEqual( g.get_user( "jacquev6" ).name, "Vincent Jacques" )
|