Browse Source

test status too, since it is important in the response

master
Julio Biason 11 years ago
parent
commit
c01c39d87f
  1. 1
      tests/users_tests.py

1
tests/users_tests.py

@ -28,6 +28,7 @@ class TestUsers(unittest.TestCase):
rv = self.app.put('/user/', rv = self.app.put('/user/',
data=json.dumps(request), data=json.dumps(request),
content_type='application/json') content_type='application/json')
self.assertEqual(rv.status_code, 200)
self.assertEqual(json.loads(rv.data), {'status': 'OK'}) self.assertEqual(json.loads(rv.data), {'status': 'OK'})
if __name__ == '__main__': if __name__ == '__main__':

Loading…
Cancel
Save