Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created June 24, 2022 02:10
Show Gist options
  • Save rahulbanerjee26/d0e687f5706414b53607cd3b5a0413ec to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/d0e687f5706414b53607cd3b5a0413ec to your computer and use it in GitHub Desktop.
def test_get_users(self):
users = [db[key] for key in db.keys()]
responseObject = requests.get('https://twilioaiphoneservice.rahulbanerjee26.repl.co/user')
self.assertEquals(responseObject.status_code, 200)
self.assertEquals(len(responseObject.json()['data']),len(users))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment