'Trying to create a realm without a creation_key should fail when
OPEN_REALM_CREATION is false.'

def test_create_realm_no_creation_key(self):

    email = 'user1@test.com'
    realm = get_realm('test')
    self.assertIsNone(realm)
    with self.settings(OPEN_REALM_CREATION=False):
        result = self.client_post('/create_realm/', {'email': email})
        self.assertEqual(result.status_code, 200)
        self.assert_in_response('New    organization    creation    disabled.', result)
