summaryrefslogtreecommitdiff
path: root/tests/test_containers.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-24 20:02:08 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-24 20:02:08 +0100
commit4d6847eb93aa269130ad803fb50be99c4a7508d0 (patch)
tree9ae1cbfa28ca7bd6430b82f5fbca83316ea084ee /tests/test_containers.py
parent6c4f5846c8e21d6e48347b7e661edb72ffabb9f1 (diff)
downloadfactory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar
factory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar.gz
Default Sequence.type to int (Closes #50).
Diffstat (limited to 'tests/test_containers.py')
-rw-r--r--tests/test_containers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_containers.py b/tests/test_containers.py
index 4f70e29..70ed885 100644
--- a/tests/test_containers.py
+++ b/tests/test_containers.py
@@ -253,7 +253,7 @@ class AttributeBuilderTestCase(unittest.TestCase):
self.assertEqual({'one': 2}, ab.build(create=False))
def test_factory_defined_sequence(self):
- seq = declarations.Sequence(lambda n: 'xx' + n)
+ seq = declarations.Sequence(lambda n: 'xx%d' % n)
class FakeFactory(object):
@classmethod
@@ -270,7 +270,7 @@ class AttributeBuilderTestCase(unittest.TestCase):
self.assertEqual({'one': 'xx1'}, ab.build(create=False))
def test_additionnal_sequence(self):
- seq = declarations.Sequence(lambda n: 'xx' + n)
+ seq = declarations.Sequence(lambda n: 'xx%d' % n)
class FakeFactory(object):
@classmethod
@@ -287,8 +287,8 @@ class AttributeBuilderTestCase(unittest.TestCase):
self.assertEqual({'one': 1, 'two': 'xx1'}, ab.build(create=False))
def test_replaced_sequence(self):
- seq = declarations.Sequence(lambda n: 'xx' + n)
- seq2 = declarations.Sequence(lambda n: 'yy' + n)
+ seq = declarations.Sequence(lambda n: 'xx%d' % n)
+ seq2 = declarations.Sequence(lambda n: 'yy%d' % n)
class FakeFactory(object):
@classmethod