Skip to content

Commit 9ce35b8

Browse files
author
Arnaud Breton
committed
Fix test_get_with_action
1 parent c3c3d7b commit 9ce35b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_get_with_data(self):
3535
def test_get_with_action(self):
3636
result_contact = self.client.contactslist.get(filters={'limit': 1}).json()
3737

38-
if result_contact['Count'] is not 0:
38+
if result_contact['Count'] != 0:
3939
contact_id = result_contact['Data'][0]['ID']
4040
else:
4141
contact_random_email = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10)) + '@mailjet.com'
@@ -44,7 +44,7 @@ def test_get_with_action(self):
4444
contact_id = post_contact.json()['Data'][0]['ID']
4545

4646
result = self.client.contact_getcontactslists.get(contact_id).json()
47-
self.failUnless(result['Count'] > 1)
47+
self.failUnless('Count' in result)
4848

4949
def test_get_with_id_filter(self):
5050
result_contact = self.client.contact.get(filters={'limit': 1}).json()

0 commit comments

Comments
 (0)