예제 #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