'This test helps ensure that our URL patterns for /users/me URLs
handle email addresses starting with "me" correctly.'

def test_api_me_user(self):

    self.register(self.nonreg_email('me'), 'testpassword')
    self.login(self.example_email('iago'))
    result = self.client_delete('/json/users/me@zulip.com')
    self.assert_json_success(result)
    user = self.nonreg_user('me')
    self.assertFalse(user.is_active)
    result = self.client_post('/json/users/{email}/reactivate'.format(email=self.nonreg_email('me')))
    self.assert_json_success(result)
    user = self.nonreg_user('me')
    self.assertTrue(user.is_active)
