@contextmanager
    def assertImproperlyConfigured(self, message):
        try:
            yield
        except ImproperlyConfigured as err:
            self.assertIn(message, str(err).lower())
        else:
            self.fail('ImproperlyConfigured not raised')
Make sure the user is inside the specified htpasswd file
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_loaders.py/ImproperlyConfiguredTestMixin.assertImproperlyConfigured--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/htpasswd.py/user_exists