'tests that the default value for is_active is provided'

@override_settings(AUTH_USER_MODEL='auth_tests.IsActiveTestUser1')
def test_is_active_field_default(self):

    UserModel = get_user_model()
    user = UserModel(username='foo')
    self.assertIs(user.is_active, True)
    user.is_active = False
    user.save()
    user_fetched = UserModel._default_manager.get(pk=user.pk)
    self.assertIs(user_fetched.is_active, True)
