'Test email cannot be more than 254 characters long.'

def test_long_email(self):

    self.url_params['email'] = '{email}@bar.com'.format(email=('foo_bar' * 36))
    response = self.client.post(self.url, self.url_params)
    self.assertGreater(len(self.url_params['email']), 254)
    self.assertEqual(response.status_code, 400)
    obj = json.loads(response.content)
    self.assertEqual(obj['value'], 'Email    cannot    be    more    than    254    characters    long')
