'Ensures that special chars are still prevented.'

@patch.dict(settings.FEATURES, {'ENABLE_UNICODE_USERNAME': True})
def test_special_chars_with_feature_enabled(self):

    invalid_params = self.url_params.copy()
    invalid_params['username'] = '**john**'
    response = self.client.post(self.url, invalid_params)
    self.assertEquals(response.status_code, 400)
    obj = json.loads(response.content)
    self.assertEquals(USERNAME_INVALID_CHARS_UNICODE, obj['value'])
    with self.assertRaises(User.DoesNotExist):
        User.objects.get(email=self.url_params['email'])
