示例#1
0
文件: hello.py 项目: asialiugf/gott
import demo
print("---------------------------")
status = demo.system("ls -l")
print("---------------------------")
hi = demo.hello("Sink")
print(hi)
print("---------------------------")
hi = demo.chinese("Sink", 2014)
print(hi)
print("---------------------------")

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

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

print("test ok !")