示例#1
0
    def test_ref_type_unknown(self):
        """Test ref_type() function for unknown ref type"""

        self.assertEqual(GitRepo.ref_type('42'), 'unknown')
示例#2
0
    def test_ref_type_sha(self):
        """Test ref_type() function for sha ref"""

        self.assertEqual(GitRepo.ref_type(self.sha_ref), 'sha')
示例#3
0
    def test_ref_type_tag(self):
        """Test ref_type() function for tag ref"""

        self.assertEqual(GitRepo.ref_type(self.tag_ref), 'tag')
示例#4
0
    def test_ref_type_branch(self):
        """Test ref_type() function for branch ref"""

        self.assertEqual(GitRepo.ref_type(self.branch_ref), 'branch')