Beispiel #1
0
def test_join():
    source = {"targets": {"test": 1, "script": 2,
              "depends": 3}}
    target = {"targets": {"test": 4, "notsource": 5}}
    press = Press("build")

    press.join(source, target)
    press.join(source, target, "vellum.test")
    press.join(source, target, named=None, as_name="things")
    press.join(source, target, "shittyfucker", "cleanfucker")

    print source
    print target

    for i in ["cleanfucker", "vellum.test", "things"]:
        assert "%s.test" % i in target["targets"]