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_double_quotes():
assert renders._double_quotes('hello"world') == r'"hello\"world"'
assert renders._double_quotes('"hello\\world"') == '"\\"hello\\world\\""'
assert renders._double_quotes("'") == '"\'"'
assert renders._double_quotes("\\") == '"\\"'
assert renders._double_quotes('"') == '"\\""'
def test_double_quotes():
assert renders._double_quotes('hello"world') == r'"hello\"world"'
assert renders._double_quotes('"hello\\world"') == '"\\"hello\\world\\""'
assert renders._double_quotes("'") == '"\'"'
assert renders._double_quotes("\\") == '"\\"'
assert renders._double_quotes('"') == '"\\""'
def test_double_quotes():
assert renders._double_quotes('hello"world') == r'"hello\"world"'
assert renders._double_quotes('"hello\\world"') == '"\\"hello\\world\\""'
assert renders._double_quotes("'") == '"\'"'
assert renders._double_quotes("\\") == '"\\"'
assert renders._double_quotes('"') == '"\\""'
def test_double_quotes():
assert renders._double_quotes('hello"world') == r'"hello\"world"'
assert renders._double_quotes('"hello\\world"') == '"\\"hello\\world\\""'
assert renders._double_quotes("'") == '"\'"'
assert renders._double_quotes("\\") == '"\\"'
assert renders._double_quotes('"') == '"\\""'
def test_double_quotes():
assert renders._double_quotes('hello"world') == r'"hello\"world"'
assert renders._double_quotes('"hello\\world"') == '"\\"hello\\world\\""'
assert renders._double_quotes("'") == '"\'"'
assert renders._double_quotes("\\") == '"\\"'
assert renders._double_quotes('"') == '"\\""'