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_methods(self):
self.t('"WORD".lower()', 'word')
x = simpleeval.DISALLOW_METHODS
simpleeval.DISALLOW_METHODS = []
self.t('"{}:{}".format(1, 2)', '1:2')
simpleeval.DISALLOW_METHODS = x
def test_methods(self):
self.t('"WORD".lower()', 'word')
x = simpleeval.DISALLOW_METHODS
simpleeval.DISALLOW_METHODS = []
self.t('"{}:{}".format(1, 2)', '1:2')
simpleeval.DISALLOW_METHODS = x
def test_methods(self):
self.t('"WORD".lower()', 'word')
x = simpleeval.DISALLOW_METHODS
simpleeval.DISALLOW_METHODS = []
self.t('"{}:{}".format(1, 2)', '1:2')
simpleeval.DISALLOW_METHODS = x