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