
    def test_create_token_missing_field(self):
        '''test that email and password is required'''
        res= self.client.post(TOKEN_URL, {'ermail':'unknown', 'password':''})
        self.assertNotIn('token', res.data)
        self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST)


    