示例#1
0
 def test_truncate_ref_sha(self):
     """Test _truncate_ref() function for sha ref"""
     self.assertEqual(_truncate_ref(self.sha_ref), self.sha_ref)
示例#2
0
 def test_truncate_ref_tag(self):
     """Test _truncate_ref() function for tag ref"""
     self.assertEqual(_truncate_ref(self.tag_ref), 'v1.0')
示例#3
0
 def test_truncate_ref_branch(self):
     """Test _truncate_ref() function for branch ref"""
     self.assertEqual(_truncate_ref(self.branch_ref), 'master')