summaryrefslogtreecommitdiff
path: root/tests/test_containers.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2012-01-11 14:11:45 -0700
committerCarl Meyer <carl@oddbird.net>2012-01-11 14:11:45 -0700
commit86393d4d1117426bc2aafbfb9f11f96c463f05f1 (patch)
tree6f84f9c1ded5beb90a87301d64b5e1180048ee28 /tests/test_containers.py
parent1d2ca8d02e190460f85d20be47bbb1e02f268bd2 (diff)
downloadfactory-boy-86393d4d1117426bc2aafbfb9f11f96c463f05f1.tar
factory-boy-86393d4d1117426bc2aafbfb9f11f96c463f05f1.tar.gz
Allow public classmethods on factories.
Diffstat (limited to 'tests/test_containers.py')
-rw-r--r--tests/test_containers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_containers.py b/tests/test_containers.py
index 34b61d4..b9eaab6 100644
--- a/tests/test_containers.py
+++ b/tests/test_containers.py
@@ -134,7 +134,7 @@ class DeclarationDictTestCase(unittest.TestCase):
def test_update_with_public(self):
d = containers.DeclarationDict()
- d.update_with_public({'one': 1, '_two': 2, 'three': 3})
+ d.update_with_public({'one': 1, '_two': 2, 'three': 3, 'four': classmethod(lambda c: 1)})
self.assertEqual(set(['one', 'three']), set(d))
self.assertEqual(set([1, 3]), set(d.values()))