class TestCommits(unittest.TestCase):

    # def setUp(self):
        # self.data = read_file('changes_python.txt')
        
        
    def test_countpathlines(self):
        self.commits = Commit()
        self.assertEqual(3011, self.commits.countpathlines())

        
    def test_countgradle(self):
        self.commits = Commit()    
        self.assertEqual(100,self.commits.countgradle())
        
    def test_countmodify(self):
        self.commits = Commit()
        self.assertEqual(1186,self.commits.countmodify())        
        
    def test_countdelete(self):
        self.commits = Commit()    
        self.assertEqual(767,self.commits.countdelete())

    def test_countadd(self):
        self.commits = Commit()   
        self.assertEqual(1056,self.commits.countadd())
        
    def test_r(self):
        self.commits = Commit()       
        self.assertEqual(2,self.commits.countR())

    def test_countauthor(self):
        self.commits = Commit()   
        self.assertEqual(10,self.commits.countauthor())

    def test_get_commits(self):
        self.commits = Commit()   
        self.assertEqual(422,self.commits.get_commits(data))         
 def test_get_commits(self):
     self.commits = Commit()   
     self.assertEqual(422,self.commits.get_commits(data))         
 def test_countauthor(self):
     self.commits = Commit()   
     self.assertEqual(10,self.commits.countauthor())
 def test_r(self):
     self.commits = Commit()       
     self.assertEqual(2,self.commits.countR())
 def test_countadd(self):
     self.commits = Commit()   
     self.assertEqual(1056,self.commits.countadd())
 def test_countdelete(self):
     self.commits = Commit()    
     self.assertEqual(767,self.commits.countdelete())
 def test_countmodify(self):
     self.commits = Commit()
     self.assertEqual(1186,self.commits.countmodify())        
 def test_countgradle(self):
     self.commits = Commit()    
     self.assertEqual(100,self.commits.countgradle())
 def test_countpathlines(self):
     self.commits = Commit()
     self.assertEqual(3011, self.commits.countpathlines())