Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_impostor_group(self, custom_settings, existing_attr):
"""
check impostor_group property
:param custom_settings:
:return:
"""
if existing_attr:
delattr(custom_settings, 'IMPOSTOR_GROUP')
assert AuthBackend().impostor_group is None
else:
assert AuthBackend().impostor_group is not None