コード例 #1
0
ファイル: amply_tests.py プロジェクト: sureshdontha/pulp-or
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
ファイル: amply_tests.py プロジェクト: Jonathanzc/pulp
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
ファイル: amply_tests.py プロジェクト: adamnovak/pulp-or
def test_from_file():
    s = StringIO("param T:= 4;")
    assert Amply.from_file(s).T == 4