示例#1
0
def test_from_file():
    s = StringIO("param T:= 4;")
    assert Amply.from_file(s).T == 4
示例#2
0
def test_from_file():
    try:
        s = StringIO("param T:= 4;")
    except TypeError:
        s = StringIO(u"param T:= 4;")
    assert Amply.from_file(s).T == 4
示例#3
0
def test_from_file():
    try:
        s = StringIO("param T:= 4;")
    except TypeError:
        s = StringIO(u"param T:= 4;")
    assert Amply.from_file(s).T == 4
示例#4
0
def test_from_file():
    s = StringIO("param T:= 4;")
    assert Amply.from_file(s).T == 4