#NEWLINE# def testGetRepoNetwork( self ) : #NEWLINE# #INDENT# 'Test network fetching.' #NEWLINE# nl = self . _gh ( 'https://github.com/api/v2/xml/repos/show/dustin/py-github/network' , 'data/network.xml' ) . repos . network ( 'dustin' , 'py-github' ) #NEWLINE# self . assertEquals ( 5 , len ( nl ) ) #NEWLINE# n = nl [ 0 ] #NEWLINE# self . assertEquals ( 'Python interface for talking to the github API' , self . description ) #NEWLINE# self . assertEquals ( 'py-github' , n . name ) #NEWLINE# self . assertFalse ( n . private ) #NEWLINE# self . assertEquals ( 'http://github.com/dustin/py-github' , n . url ) #NEWLINE# self . assertEquals ( 30 , n . watchers ) #NEWLINE# self . assertEquals ( 4 , n . forks ) #NEWLINE# self . assertFalse ( n . fork ) #NEWLINE# self . assertEquals ( 'dustin' , n . owner ) #NEWLINE# self . assertEquals ( 'http://dustin.github.com/2008/12/29/github-sync.html' , n . homepage )