'The current user model must point to an installed model'

@override_settings(AUTH_USER_MODEL=u'thismodel.doesntexist')
def test_swappable_user_nonexistent_model(self):

    with self.assertRaises(ImproperlyConfigured):
        get_user_model()
