We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e446b1c commit 1423c7bCopy full SHA for 1423c7b
1 file changed
test/__init__.py
@@ -20,7 +20,7 @@
20
21
class TestSendGrid(unittest.TestCase):
22
maxDiff = None
23
-
+
24
def setUp(self):
25
self.sg = SendGridClient(SG_USER, SG_PWD)
26
@@ -97,7 +97,10 @@ def test_send(self):
97
"asm_group_id": 42
98
}
99
'''))
100
- self.assertEqual(url, test_url)
+ try:
101
+ self.assertItemsEqual(url, test_url) #python 2
102
+ except AttributeError:
103
+ self.assertCountEqual(url, test_url)
104
105
@unittest.skipUnless(sys.version_info < (3, 0), 'only for python2')
106
def test__build_body_unicode(self):
0 commit comments