summaryrefslogtreecommitdiff
path: root/tests/test_declarations.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-03 20:32:42 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-03 21:38:46 +0100
commitf248ebda408faee17f32c8f260bcf2d5df27b83d (patch)
tree8318d2e6e691e1f3391a19da9102bc1b776469ef /tests/test_declarations.py
parent37621846d541d7afcad52e6dba8281bd1146cf09 (diff)
downloadfactory-boy-f248ebda408faee17f32c8f260bcf2d5df27b83d.tar
factory-boy-f248ebda408faee17f32c8f260bcf2d5df27b83d.tar.gz
Improve coverage.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/test_declarations.py')
-rw-r--r--tests/test_declarations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_declarations.py b/tests/test_declarations.py
index ef7cc0f..c57e77d 100644
--- a/tests/test_declarations.py
+++ b/tests/test_declarations.py
@@ -227,6 +227,10 @@ class PostGenerationDeclarationTestCase(unittest.TestCase):
class SubFactoryTestCase(unittest.TestCase):
+
+ def test_arg(self):
+ self.assertRaises(ValueError, declarations.SubFactory, 'UnqualifiedSymbol')
+
def test_lazyness(self):
f = declarations.SubFactory('factory.declarations.Sequence', x=3)
self.assertEqual(None, f.factory)