Esempio n. 1
0
import demo
print("---------------------------")
status = demo.system("ls -l")
print("---------------------------")
hi = demo.hello("Sink")
print(hi)
print("---------------------------")
hi = demo.chinese("Sink", 2014)
print(hi)
print("---------------------------")

Esempio n. 2
0
def test_default():
    assert hello() == "Hollo World!-)"
Esempio n. 3
0
def test_put_foo():
    assert_equals(hello('foo'),
                        "foo" ) 
Esempio n. 4
0
import demo
from demo import sub1, sub2

assert demo.hello() == "root"
assert sub1.hello() == "sub1"
assert sub2.hello() == "sub2"

print("test ok !")