Esempio n. 1
0
 def test_ref_type_unknown(self):
     """Test _ref_type() function for unknown ref type"""
     self.assertEqual(_ref_type('42'), 'unknown')
Esempio n. 2
0
 def test_ref_type_sha(self):
     """Test _ref_type() function for sha ref"""
     self.assertEqual(_ref_type(self.sha_ref), 'sha')
Esempio n. 3
0
 def test_ref_type_tag(self):
     """Test _ref_type() function for tag ref"""
     self.assertEqual(_ref_type(self.tag_ref), 'tag')
Esempio n. 4
0
 def test_ref_type_branch(self):
     """Test _ref_type() function for branch ref"""
     self.assertEqual(_ref_type(self.branch_ref), 'branch')