Beispiel #1
0
    def test_usage(self):
        task = Task("build")
        task.describe("Does the building")
        task << Bar(2, grade=3) >> Foo()
        task << Foo() >> Bar(level=2)
        Hellbox.add_task(task)

        task = Task("package")
        task.describe("Does the packaging\nZips and tars")
        task << Foo()
        Hellbox.add_task(task)

        assert Hellbox.usage() == USAGE
Beispiel #2
0
    def test_usage(self):
        task = Task("build")
        task.describe("Does the building")
        task << Bar(2, grade=3) >> Foo()
        task << Foo() >> Bar(level=2)
        Hellbox.add_task(task)

        task = Task("package")
        task.describe("Does the packaging\nZips and tars")
        task << Foo()
        Hellbox.add_task(task)

        assert Hellbox.usage() == USAGE
Beispiel #3
0
 def test_describe(self):
     task = Task("foo")
     task.describe("something")
     assert task.description == "something"
Beispiel #4
0
 def test_describe(self):
     task = Task('foo')
     task.describe('something')
     assert task.description is 'something'