Skip to content

Commit e446b1c

Browse files
committed
removed custom assertDictEqual()
1 parent 5ebb0a5 commit e446b1c

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

test/__init__.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,7 @@
2020

2121
class TestSendGrid(unittest.TestCase):
2222
maxDiff = None
23-
24-
def assertDictEqual(self, d1, d2, msg=None): # assertEqual uses for dicts
25-
for k,v1 in d1.items():
26-
self.assertIn(k, d2, msg)
27-
v2 = d2[k]
28-
if(isinstance(v1, collections.Iterable) and
29-
not isinstance(v1, basestring)):
30-
self.assertItemsEqual(v1, v2, msg)
31-
else:
32-
self.assertEqual(v1, v2, msg)
33-
return True
34-
23+
3524
def setUp(self):
3625
self.sg = SendGridClient(SG_USER, SG_PWD)
3726

0 commit comments

Comments
 (0)