'Test that the form has no username field. And that the username is
generated in the save method'

def test_signup_form_only_email(self):

    valid_data = {u'email': u'hans@gretel.com', u'password1': u'blowfish', u'password2': u'blowfish'}
    form = forms.SignupFormOnlyEmail(data=valid_data)
    self.assertFalse(form.fields.get(u'username', False))
    self.assertTrue(form.is_valid())
    user = form.save()
    self.assertTrue(len(user.username), 5)
