示例#1
0
def test_bees_template_with_context():
    expected = File(BEES_ROOT.child("expected/bees_with_guns.json")).read_all()
    context = yaml.load(File(SOURCE_ROOT.child("cfn.context.yaml")).read_all())
    actual = generator.render("cfn.context", search_paths=[SOURCE_ROOT.path, SCRIPT_ROOT.path], context_data=context)
    assert_json_equals(actual, expected)
示例#2
0
def test_bees_template():
    expected = File(BEES_ROOT.child("expected/bees_with_guns.json")).read_all()
    actual = generator.render("cfn.template", search_paths=[SOURCE_ROOT.path, SCRIPT_ROOT.path])
    assert_text_equals(actual, expected)