@@ -0,0 +1,392 @@
+import filecmp%0Aimport os%0Aimport os.path%0Aimport tempfile%0A%0Aimport arpa%0A%0ATEST_ARPA = os.path.join(os.path.dirname(__file__), %22data/test.arpa%22)%0A%0A%0Adef test_loadf_dumpf():%0A    lm = arpa.loadf(TEST_ARPA)%5B0%5D%0A    out = tempfile.NamedTemporaryFile(mode=%22w+t%22, delete=False)%0A    arpa.dumpf(lm, out.name)%0A    out.close()%0A    assert filecmp.cmp(TEST_ARPA, out.name, shallow=False)%0A    os.unlink(out.name)%0A

test for arpa.loadf + arpa.dumpf