def test_escape_value_leading_whitespace(): eq_(br'\ \ x\ty ', jprops._escape_value(' x\ty '))
def test_escape_value(value, expected): actual = jprops._escape_value(value) assert actual == expected assert type(actual) == type(expected)
def test_escape_value_key_terminator(): assert jprops._escape_value('=') == br'\=' assert jprops._escape_value(':') == br'\:'
def test_escape_value_leading_whitespace(): assert jprops._escape_value(' x\ty ') == br'\ \ x\ty '