def setUp(self): self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True, auto_create=True) self.gargoyle.register(HostConditionSet())
def setUp(self): self.user = User.objects.create(username='******', email='*****@*****.**') self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True) self.gargoyle.register(UserConditionSet(User))
def setUp(self): super(NumberConditionSetTests, self).setUp() self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True, auto_create=True) self.gargoyle.register(NumberConditionSet()) Switch.objects.create(key='test', status=SELECTIVE) self.switch = self.gargoyle['test']
def setUp(self): self.user = User.objects.create(username='******', email='*****@*****.**') self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True, auto_create=True) self.gargoyle.register(UserConditionSet(User)) self.gargoyle.register(IPAddressConditionSet()) self.internal_ips = settings.INTERNAL_IPS
def setUp(self): super(IPAddressConditionSetTests, self).setUp() self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True, auto_create=True) self.gargoyle.register(IPAddressConditionSet()) self.request_factory = RequestFactory() Switch.objects.create(key='test', status=SELECTIVE) self.switch = self.gargoyle['test'] assert not self.gargoyle.is_active('test')
def setUp(self): self.gargoyle = SwitchManager(Switch, key='key', value='value', instances=True, auto_create=True)