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_exception(self, value, expected):
with pytest.raises(expected):
set_log_level(value)
def test_smoke(self, value):
set_log_level(value)