def test_post(self): handler = self.request({}, role='admin') yield handler.post('users', self.dummyReceiverUser_1['id']) img = yield modelimgs.get_model_img(models.User, self.dummyReceiverUser_1['id']) self.assertNotEqual(img, '')
def test_post(self): handler = self.request({}, role='admin') yield handler.post('users', self.dummyReceiverUser_1['id']) img = yield modelimgs.get_model_img(models.User, self.dummyReceiverUser_1['id']) self.assertNotEqual(img, '')
def test_delete(self): handler = self.request({}, role='admin') yield handler.delete('users', self.dummyReceiverUser_1['id']) img = yield modelimgs.get_model_img(1, 'users', self.dummyReceiverUser_1['id']) self.assertEqual(img, '')