Skip to content

Commit

Permalink
Use assertEqual rather than assertEquals.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Sep 10, 2015
1 parent 81c6662 commit dd6ee1f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dulwich/tests/test_objectspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def test_nonexistent(self):

def test_head(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals(b"refs/heads/foo", parse_ref(r, b"foo"))
self.assertEqual(b"refs/heads/foo", parse_ref(r, b"foo"))

def test_full(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals(b"refs/heads/foo", parse_ref(r, b"refs/heads/foo"))
self.assertEqual(b"refs/heads/foo", parse_ref(r, b"refs/heads/foo"))


class ParseRefsTests(TestCase):
Expand All @@ -93,11 +93,11 @@ def test_nonexistent(self):

def test_head(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals([b"refs/heads/foo"], parse_refs(r, [b"foo"]))
self.assertEqual([b"refs/heads/foo"], parse_refs(r, [b"foo"]))

def test_full(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals([b"refs/heads/foo"], parse_refs(r, b"refs/heads/foo"))
self.assertEqual([b"refs/heads/foo"], parse_refs(r, b"refs/heads/foo"))


class ParseReftupleTests(TestCase):
Expand All @@ -108,16 +108,16 @@ def test_nonexistent(self):

def test_head(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals((b"refs/heads/foo", b"refs/heads/foo", False),
self.assertEqual((b"refs/heads/foo", b"refs/heads/foo", False),
parse_reftuple(r, r, b"foo"))
self.assertEquals((b"refs/heads/foo", b"refs/heads/foo", True),
self.assertEqual((b"refs/heads/foo", b"refs/heads/foo", True),
parse_reftuple(r, r, b"+foo"))
self.assertEquals((b"refs/heads/foo", b"refs/heads/foo", True),
self.assertEqual((b"refs/heads/foo", b"refs/heads/foo", True),
parse_reftuple(r, {}, b"+foo"))

def test_full(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals((b"refs/heads/foo", b"refs/heads/foo", False),
self.assertEqual((b"refs/heads/foo", b"refs/heads/foo", False),
parse_reftuple(r, r, b"refs/heads/foo"))


Expand All @@ -130,10 +130,10 @@ def test_nonexistent(self):

def test_head(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals([(b"refs/heads/foo", b"refs/heads/foo", False)],
self.assertEqual([(b"refs/heads/foo", b"refs/heads/foo", False)],
parse_reftuples(r, r, [b"foo"]))

def test_full(self):
r = {b"refs/heads/foo": "bla"}
self.assertEquals([(b"refs/heads/foo", b"refs/heads/foo", False)],
self.assertEqual([(b"refs/heads/foo", b"refs/heads/foo", False)],
parse_reftuples(r, r, b"refs/heads/foo"))

0 comments on commit dd6ee1f

Please sign in to comment.