Exemplo n.º 1
0
def test_android_roundtrip_quoting():
    specials = ["don't", 'the "thing"']
    for special in specials:
        quoted_special = dtd.quoteforandroid(special)
        unquoted_special = dtd.unquotefromandroid(quoted_special)
        print("special: %r\nquoted: %r\nunquoted: %r\n" %
              (special, quoted_special, unquoted_special))
        assert special == unquoted_special
Exemplo n.º 2
0
def test_android_roundtrip_quoting():
    specials = [
        "don't",
        'the "thing"'
    ]
    for special in specials:
        quoted_special = dtd.quoteforandroid(special)
        unquoted_special = dtd.unquotefromandroid(quoted_special)
        print("special: %r\nquoted: %r\nunquoted: %r\n" % (special,
                                                           quoted_special,
                                                           unquoted_special))
        assert special == unquoted_special
Exemplo n.º 3
0
def test_quoteforandroid():
    """Test quoting Android DTD definitions."""
    assert dtd.quoteforandroid("don't") == r'"don\u0027t"'
    assert dtd.quoteforandroid('the "thing"') == r'"the \"thing\""'
Exemplo n.º 4
0
def test_quoteforandroid():
    """Test quoting Android DTD definitions."""
    assert dtd.quoteforandroid("don't") == r'"don\u0027t"'
    assert dtd.quoteforandroid('the "thing"') == r'"the \"thing\""'
Exemplo n.º 5
0
def test_quoteforandroid():
    assert dtd.quoteforandroid("don't") == r'"don\'t"'
    assert dtd.quoteforandroid('the "thing"') == r'"the \"thing\""'
Exemplo n.º 6
0
def test_quoteforandroid():
    assert dtd.quoteforandroid("don't") == r'"don\'t"'
    assert dtd.quoteforandroid('the "thing"') == r'"the \"thing\""'