def test_count_comments_with_4_lines(self): commits = get_commits(self.data) self.assertEqual(7, get_number_of_4_comment_lines(commits))
def test_number_of_authors(self): commits = get_commits(self.data) authors = get_authors(commits) print authors self.assertEqual(10, len(authors)) self.assertEqual(191, authors['Thomas'])
def test_first_commit(self): commits = get_commits(self.data) self.assertEqual('Vincent', commits[10]['author']) self.assertEqual('r1551332', commits[10]['revision'])
def test_number_of_commits(self): commits = get_commits(self.data) self.assertEqual(422, len(commits))