|
|
@ -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__': |
|
|
|