Dulwich.io dulwich / c33607e
Add another test for ref setting. Jelmer Vernooń≥ 23 days ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
223223 b'HEAD', b'42d06bd4b77fed026b154d16493e5deab78f02ec', nines))
224224 self.assertEqual(nines, self._refs[b'HEAD'])
225225
226 # Setting the ref again is a no-op, but will return True.
227 self.assertTrue(self._refs.set_if_equals(b'HEAD', nines, nines))
228 self.assertEqual(nines, self._refs[b'HEAD'])
229
226230 self.assertTrue(self._refs.set_if_equals(b'refs/heads/master', None,
227231 nines))
228232 self.assertEqual(nines, self._refs[b'refs/heads/master'])