Esempio n. 1
0
def test_next_statement():
    build = Builder()
    build.next_statement({
            "command": "include", 
            "file": "test.py", 
            "section": "test section", 
            "format": "html",
            "lines": []
            })
    assert_equal(len(build.exports), 1)
    assert_equal(len(build.sections), 1)

    build.next_statement({
            "command": "export", 
            "section": "test other section", 
            "language": "python",
            "lines": []})
    build.end()
    assert_equal(len(build.exports), 2)