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