Beispiel #1
0
def test_from_file():
    s = StringIO("param T:= 4;")
    assert Amply.from_file(s).T == 4
Beispiel #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
Beispiel #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
Beispiel #4
0
def test_from_file():
    s = StringIO("param T:= 4;")
    assert Amply.from_file(s).T == 4