Django Testing: Faking User Creation
- by Ygam
I want to better write this test:
def test_profile_created(self):
self.client.post(reverse('registration_register'), data={
'username':'ygam',
'email':'ygam@example.com',
'password1':'ygam',
'password2':'ygam'
})
"""
Test if a profile is created on save
"""
…