Beispiel #1
0
 def test_first_commit(self):
     commits = get_commits(self.data)
     self.assertEqual('Thomas', commits[0]['author'])
     self.assertEqual('r1551925', commits[0]['revision'])
     # Added two more tests to the fist_commit function
     self.assertEqual('2015-11-27 16:57:44 +0000 (Fri, 27 Nov 2015)',
                      commits[0]['date'])
     self.assertEqual('line', commits[0]['number_of_lines'])
Beispiel #2
0
 def test_first_commit(self):
     commits = get_commits(self.data)
     self.assertEqual('Thomas', commits[0]['author'])
     self.assertEqual('r1551925', commits[0]['revision'])
Beispiel #3
0
 def test_number_of_commits(self):
     commits = get_commits(self.data)
     self.assertEqual(422, len(commits))
Beispiel #4
0
 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('Thomas', commits[0]['author'])
     self.assertEqual('r1551925', commits[0]['revision'])
 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_number_of_commits(self):
     commits = get_commits(self.data)
     self.assertEqual(422, len(commits))