diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-05-17 16:59:54 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-05-17 16:59:54 +0000 |
commit | d76e99895953bfe3a7775441bd5c18f08ff421d1 (patch) | |
tree | fc84c9b4c7c0538ce88e27ad76fe856bf747b960 /gear | |
parent | 50616da084f9142e4746891e94be76ca6d1d14f9 (diff) | |
parent | dfd79cdd1f1283197e5f6d55d44466e23117c2f5 (diff) | |
download | gear-d76e99895953bfe3a7775441bd5c18f08ff421d1.tar.gz |
Merge "Replace assertEquals with assertEqual"0.9.0
Diffstat (limited to 'gear')
-rw-r--r-- | gear/tests/test_gear.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gear/tests/test_gear.py b/gear/tests/test_gear.py index c700431..6bb7f37 100644 --- a/gear/tests/test_gear.py +++ b/gear/tests/test_gear.py @@ -110,11 +110,11 @@ class TestConnection(tests.BaseTestCase): self.conn.admin_requests.append(req) self.socket._set_data([p1.toBinary() + response + p2.toBinary()]) r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) ra = self.conn.readPacket() self.assertEqual(ra.response, response) r2 = self.conn.readPacket() - self.assertEquals(r2, p2) + self.assertEqual(r2, p2) self.assertEndOfData() def test_readPacket_large(self): @@ -125,7 +125,7 @@ class TestConnection(tests.BaseTestCase): ) self.socket._set_data([p1.toBinary()]) r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) self.assertEndOfData() def test_readPacket_multi_pdu(self): @@ -143,10 +143,10 @@ class TestConnection(tests.BaseTestCase): p1.toBinary()[1448:] + p2.toBinary()]) # First packet r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) # Second packet r2 = self.conn.readPacket() - self.assertEquals(r2, p2) + self.assertEqual(r2, p2) self.assertEndOfData() @@ -187,11 +187,11 @@ class TestServerConnection(tests.BaseTestCase): ) self.socket._set_data([p1.toBinary() + command + p2.toBinary()]) r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) ra = self.conn.readPacket() self.assertEqual(ra.command, command.strip()) r2 = self.conn.readPacket() - self.assertEquals(r2, p2) + self.assertEqual(r2, p2) self.assertEndOfData() def test_readPacket_large(self): @@ -202,7 +202,7 @@ class TestServerConnection(tests.BaseTestCase): ) self.socket._set_data([p1.toBinary()]) r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) self.assertEndOfData() def test_readPacket_multi_pdu(self): @@ -223,10 +223,10 @@ class TestServerConnection(tests.BaseTestCase): self.conn.readPacket() # Second half of first packet r1 = self.conn.readPacket() - self.assertEquals(r1, p1) + self.assertEqual(r1, p1) # Second packet r2 = self.conn.readPacket() - self.assertEquals(r2, p2) + self.assertEqual(r2, p2) self.assertEndOfData() |