'Trying to create a realm with an existing email should just redirect to
a login page.'

def test_create_realm_existing_email(self):

    with self.settings(OPEN_REALM_CREATION=True):
        email = self.example_email('hamlet')
        result = self.client_post('/create_realm/', {'email': email})
        self.assertEqual(result.status_code, 302)
        self.assertIn('login', result['Location'])
