

def test_anonymous_users(self):
    from .. import settings as wooey_settings
    from django.contrib.auth.models import AnonymousUser
    user = AnonymousUser()
    script_version = self.translate_script
    script = script_version.script
    d = utils.valid_user(script, user)
    self.assertTrue(d['valid'])
    wooey_settings.WOOEY_ALLOW_ANONYMOUS = False
    d = utils.valid_user(d, user)
    self.assertFalse(d['valid'])

dataset/ETHPy150Open wooey/Wooey/wooey/tests/test_utils.py TestUtils.test_anonymous_users/VarMisuse@80/110 `script`->`d`