feat: add support for Wutta <-> Wutta import/export
This commit is contained in:
parent
bfc45bd0f0
commit
ae282ab468
25 changed files with 719 additions and 21 deletions
|
|
@ -19,6 +19,17 @@ class TestImportHandler(DataTestCase):
|
|||
def make_handler(self, **kwargs):
|
||||
return mod.ImportHandler(self.config, **kwargs)
|
||||
|
||||
def test_constructor(self):
|
||||
|
||||
# attr missing by default
|
||||
handler = self.make_handler()
|
||||
self.assertFalse(hasattr(handler, "some_foo_attr"))
|
||||
|
||||
# but constructor can set it
|
||||
handler = self.make_handler(some_foo_attr="bar")
|
||||
self.assertTrue(hasattr(handler, "some_foo_attr"))
|
||||
self.assertEqual(handler.some_foo_attr, "bar")
|
||||
|
||||
def test_str(self):
|
||||
handler = self.make_handler()
|
||||
self.assertEqual(str(handler), "None → None")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue