Example #1
0
def test_escape_value_leading_whitespace():
  eq_(br'\ \ x\ty ', jprops._escape_value('  x\ty '))
Example #2
0
def test_escape_value(value, expected):
    actual = jprops._escape_value(value)
    assert actual == expected
    assert type(actual) == type(expected)
Example #3
0
def test_escape_value(value, expected):
  actual = jprops._escape_value(value)
  assert actual == expected
  assert type(actual) == type(expected)
Example #4
0
def test_escape_value_key_terminator():
  assert jprops._escape_value('=') == br'\='
  assert jprops._escape_value(':') == br'\:'
Example #5
0
def test_escape_value_leading_whitespace():
  assert jprops._escape_value('  x\ty ') == br'\ \ x\ty '
Example #6
0
def test_escape_value_leading_whitespace():
    eq_(br'\ \ x\ty ', jprops._escape_value('  x\ty '))