How to use the puppetboard.utils function in puppetboard

To help you get started, we’ve selected a few puppetboard 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 voxpupuli / puppetboard / test / test_utils.py View on Github external
def test_format_val_str():
    x = "some string"
    assert x == utils.formatvalue(x), "Should return same value"
github voxpupuli / puppetboard / test / test_utils.py View on Github external
def test_json_format():
    demo = [{'foo': 'bar'}, {'bar': 'foo'}]
    sample = json.dumps(demo, indent=2, separators=(',', ': '))

    assert sample == utils.jsonprint(demo), "Json formatting has changed"