def testNumberOfDatesCorrectResult(self): commitsList = getCommits(self.fileData) datesList = getDates(commitsList) self.assertEqual(76, len(datesList))
def testNumberOfTimesCorrectResult(self): commitsList = getCommits(self.fileData) timesList = getTimes(commitsList) self.assertEqual(419, len(timesList))
def testNumberOfMonthsCorrectResult(self): commitsList = getCommits(self.fileData) monthsList = getMonths(commitsList) self.assertEqual(5, len(monthsList))
def testLowestCommiterCorrectResult(self): commitsList = getCommits(self.fileData) authorsList = getAuthors(commitsList) self.assertEqual(1, authorsList['murari.krishnan']['commits']) self.assertEqual(1, authorsList['murari.krishnan']['lines'])
def testTopCommiterCorrectResult(self): commitsList = getCommits(self.fileData) authorsList = getAuthors(commitsList) self.assertEqual(191, authorsList['Thomas']['commits']) self.assertEqual(234, authorsList['Thomas']['lines'])
def testNumberOfAuthorsCorrectResult(self): commitsList = getCommits(self.fileData) authorsList = getAuthors(commitsList) self.assertEqual(10, len(authorsList))
def testNumberOfCommitsCorrectResult(self): commitsList = getCommits(self.fileData) self.assertEqual(422, len(commitsList))