示例#1
0
def test_get_string():
    mpfile = MPFile.from_file('test_files/test_archieml.txt')
    mpfile_test = MPFile.from_string(mpfile.get_string())
    assert_equal(mpfile.document, mpfile_test.document)
示例#2
0
def test_get_string():
    test_file = os.path.join(os.path.dirname(__file__), 'test_archieml.txt')
    mpfile = MPFile.from_file(test_file)
    mpfile_test = MPFile.from_string(mpfile.get_string())
    assert mpfile.document == mpfile_test.document
示例#3
0
def test_get_string():
    mpfile = MPFile.from_file('test_files/test_archieml.txt')
    mpfile_test = MPFile.from_string(mpfile.get_string())
    assert_equal(mpfile.document, mpfile_test.document)