- def test_import_inpx(self):
- import_inpx(os.path.join(os.path.dirname(__file__), 'test.inpx'))
- self.assertEqual(Author.select().count(), 4)
- self.assertEqual(Book.select().count(), 4)
+def test_import_bad_inpx():
+ raises(ValueError, load_inpx, 'bad.inpx')