'Check if signing up with an active email redirects to a login page.'

def test_signup_already_active(self):

    email = self.example_email('hamlet')
    result = self.client_post('/accounts/home/', {'email': email})
    self.assertEqual(result.status_code, 302)
    self.assertIn('login', result['Location'])
