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