예제 #1
0
def test_load_yaml_file():
    data = helpers.load_file("tests/data/broker_args.yaml")
    assert data == BROKER_ARGS_DATA
예제 #2
0
def test_negative_load_file():
    data = helpers.load_file("this/doesnt/exist.something")
    assert not data
예제 #3
0
def test_load_json_file():
    data = helpers.load_file("tests/data/broker_args.json")
    assert data == BROKER_ARGS_DATA