Пример #1
0
 def test_get_peeled(self):
     refs = InfoRefsContainer(BytesIO(_TEST_REFS_SERIALIZED))
     # refs/heads/loop does not show up even if it exists
     self.assertEqual(
         _TEST_REFS[b"refs/heads/master"],
         refs.get_peeled(b"refs/heads/master"),
     )
Пример #2
0
 def test_get_peeled(self):
     refs = InfoRefsContainer(BytesIO(_TEST_REFS_SERIALIZED))
     # refs/heads/loop does not show up even if it exists
     self.assertEqual(
         _TEST_REFS[b'refs/heads/master'],
         refs.get_peeled(b'refs/heads/master'))
Пример #3
0
 def test_get_peeled(self):
     refs = InfoRefsContainer(StringIO(_TEST_REFS_SERIALIZED))
     # refs/heads/loop does not show up even if it exists
     self.assertEqual(
         _TEST_REFS['refs/heads/master'],
         refs.get_peeled('refs/heads/master'))