def test_ref_type_unknown(self): """Test ref_type() function for unknown ref type""" self.assertEqual(GitRepo.ref_type('42'), 'unknown')
def test_ref_type_sha(self): """Test ref_type() function for sha ref""" self.assertEqual(GitRepo.ref_type(self.sha_ref), 'sha')
def test_ref_type_tag(self): """Test ref_type() function for tag ref""" self.assertEqual(GitRepo.ref_type(self.tag_ref), 'tag')
def test_ref_type_branch(self): """Test ref_type() function for branch ref""" self.assertEqual(GitRepo.ref_type(self.branch_ref), 'branch')