'check_password() returns the correct values as per
https://modwsgi.readthedocs.io/en/develop/user-guides/access-control-mechanisms.html#apache-authentication-provider'

def test_check_password(self):

    User.objects.create_user('test', 'test@example.com', 'test')
    self.assertIsNone(check_password({}, 'unknown', ''))
    self.assertTrue(check_password({}, 'test', 'test'))
    User.objects.filter(username='test').update(is_active=False)
    self.assertFalse(check_password({}, 'test', 'test'))
    self.assertFalse(check_password({}, 'test', 'incorrect'))
