'The current user model can be swapped out for another'

@override_settings(AUTH_USER_MODEL=u'auth.CustomUser')
def test_swappable_user(self):

    self.assertEqual(get_user_model(), CustomUser)
    with self.assertRaises(AttributeError):
        User.objects.all()
