diff options
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index dbc357b..9aaafc1 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -25,6 +25,7 @@ from factory import utils from .compat import unittest + class ExtractDictTestCase(unittest.TestCase): def test_empty_dict(self): self.assertEqual({}, utils.extract_dict('foo', {})) @@ -84,6 +85,7 @@ class ExtractDictTestCase(unittest.TestCase): self.assertIn('foo__bar', d) self.assertNotIn('foo__foo__bar', d) + class MultiExtractDictTestCase(unittest.TestCase): def test_empty_dict(self): self.assertEqual({'foo': {}}, utils.multi_extract_dict(['foo'], {})) @@ -213,6 +215,7 @@ class MultiExtractDictTestCase(unittest.TestCase): self.assertNotIn('bar__foo', d) self.assertNotIn('bar__bar__baz', d) + class ImportObjectTestCase(unittest.TestCase): def test_datetime(self): imported = utils.import_object('datetime', 'date') |