summaryrefslogtreecommitdiff
path: root/tests/test_containers.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2016-04-02 16:11:58 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2016-04-02 16:14:41 +0200
commiteea28cce1544021f3d152782c9932a20402d6240 (patch)
tree7119e8076be32ce11972c8137fc88ce98698f875 /tests/test_containers.py
parent094a66fb0e6a70c15cc7cbdee5d40ba5e128c433 (diff)
downloadfactory-boy-eea28cce1544021f3d152782c9932a20402d6240.tar
factory-boy-eea28cce1544021f3d152782c9932a20402d6240.tar.gz
Refactor: move error defs to a dedicated module.
Diffstat (limited to 'tests/test_containers.py')
-rw-r--r--tests/test_containers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_containers.py b/tests/test_containers.py
index 825e897..20c773a 100644
--- a/tests/test_containers.py
+++ b/tests/test_containers.py
@@ -23,6 +23,7 @@
from factory import base
from factory import containers
from factory import declarations
+from factory import errors
from .compat import unittest
@@ -88,7 +89,7 @@ class LazyStubTestCase(unittest.TestCase):
stub = containers.LazyStub({'one': LazyAttr('two'), 'two': LazyAttr('one')})
- self.assertRaises(containers.CyclicDefinitionError, getattr, stub, 'one')
+ self.assertRaises(errors.CyclicDefinitionError, getattr, stub, 'one')
def test_representation(self):
class RandomObj(object):