X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2Ftest_inp.py;h=6aeefd18c4bf634dacaf412112e6804f929e6a2f;hb=76fad1db9bf3d812333ca9f65b1ed87c8549cab7;hp=ff3cfa4f0884905acf3a59e1ccea66a0a5c9ae38;hpb=d31c0e3f3f33c7b99cd972d0761f2744de068f1f;p=m_librarian.git diff --git a/tests/test_inp.py b/tests/test_inp.py index ff3cfa4..6aeefd1 100755 --- a/tests/test_inp.py +++ b/tests/test_inp.py @@ -1,20 +1,16 @@ #! /usr/bin/env python -import os from tests import TestCase, main from m_librarian.db import Author, Book -from m_librarian.inp import import_inpx class TestInp(TestCase): def test_import_bad_inpx(self): - self.assertRaises( - ValueError, import_inpx, - os.path.join(os.path.dirname(__file__), 'bad.inpx')) + self.assertRaises(ValueError, self.import_inpx, 'bad.inpx') def test_import_inpx(self): - import_inpx(os.path.join(os.path.dirname(__file__), 'test.inpx')) + self.import_inpx('test.inpx') self.assertEqual(Author.select().count(), 4) self.assertEqual(Book.select().count(), 4)