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