How to use the awe.parser._prepare function in awe

To help you get started, we’ve selected a few awe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dankilman / awe / tests / test_parser.py View on Github external
def test_prepare():
    obj1 = object()
    assert parser._prepare(obj1) is obj1
    assert parser._prepare('one') == 'one'
    assert parser._prepare('"one"') == 'one'
    assert parser._prepare('[]') == []
    assert parser._prepare('{}') == {}
github dankilman / awe / tests / test_parser.py View on Github external
def test_prepare():
    obj1 = object()
    assert parser._prepare(obj1) is obj1
    assert parser._prepare('one') == 'one'
    assert parser._prepare('"one"') == 'one'
    assert parser._prepare('[]') == []
    assert parser._prepare('{}') == {}
github dankilman / awe / tests / test_parser.py View on Github external
def test_prepare():
    obj1 = object()
    assert parser._prepare(obj1) is obj1
    assert parser._prepare('one') == 'one'
    assert parser._prepare('"one"') == 'one'
    assert parser._prepare('[]') == []
    assert parser._prepare('{}') == {}
github dankilman / awe / tests / test_parser.py View on Github external
def test_prepare():
    obj1 = object()
    assert parser._prepare(obj1) is obj1
    assert parser._prepare('one') == 'one'
    assert parser._prepare('"one"') == 'one'
    assert parser._prepare('[]') == []
    assert parser._prepare('{}') == {}