File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments