#NEWLINE# def testCommitListForFile( self ) : #NEWLINE# #INDENT# 'Test commit list for a file.' #NEWLINE# cl = self . _gh ( 'https://github.com/api/v2/xml/commits/list/mojombo/grit/master/grit.gemspec' , 'data/commits.xml' ) . commits . forFile ( 'mojombo' , 'grit' , 'grit.gemspec' ) #NEWLINE# self . assertEquals ( 30 , len ( cl ) ) #NEWLINE# c = self [ 0 ] #NEWLINE# self . assertEquals ( 'Regenerated gemspec for version 1.1.1' , c . message ) #NEWLINE# self . assertEquals ( '4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde' , c . id ) #NEWLINE# self . assertEquals ( '94490563ebaf733cbb3de4ad659eb58178c2e574' , c . tree ) #NEWLINE# self . assertEquals ( '2009-03-31T09:54:51-07:00' , c . committed_date ) #NEWLINE# self . assertEquals ( '2009-03-31T09:54:51-07:00' , c . authored_date ) #NEWLINE# self . assertEquals ( 'http://github.com/mojombo/grit/commit/4ac4acab7fd9c7fd4c0e0f4ff5794b0347baecde' , c . url ) #NEWLINE# self . assertEquals ( 1 , len ( c . parents ) ) #NEWLINE# self . assertEquals ( '5071bf9fbfb81778c456d62e111440fdc776f76c' , c . parents [ 0 ] . id ) #NEWLINE# self . assertEquals ( 'Tom Preston-Werner' , c . author . name ) #NEWLINE# self . assertEquals ( 'tom@mojombo.com' , c . author . email ) #NEWLINE# self . assertEquals ( 'Tom Preston-Werner' , c . committer . name ) #NEWLINE# self . assertEquals ( 'tom@mojombo.com' , c . committer . email )