diff options
author | Carl Meyer <carl@oddbird.net> | 2012-01-12 09:01:46 -0700 |
---|---|---|
committer | Carl Meyer <carl@oddbird.net> | 2012-01-12 09:01:46 -0700 |
commit | 99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a (patch) | |
tree | f0395eaea6f8b882abc3fda55f9bbf71176968f4 /tests/test_containers.py | |
parent | 8aec45386aaf410a36bdf57ebf24cfe9f1fdf3b2 (diff) | |
download | factory-boy-99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a.tar factory-boy-99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a.tar.gz |
Added support for staticmethods on factories as well.
Diffstat (limited to 'tests/test_containers.py')
-rw-r--r-- | tests/test_containers.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_containers.py b/tests/test_containers.py index b4c5c52..effb060 100644 --- a/tests/test_containers.py +++ b/tests/test_containers.py @@ -159,7 +159,13 @@ class DeclarationDictTestCase(unittest.TestCase): def test_update_with_public(self): d = containers.DeclarationDict() - d.update_with_public({'one': 1, '_two': 2, 'three': 3, 'four': classmethod(lambda c: 1)}) + d.update_with_public({ + 'one': 1, + '_two': 2, + 'three': 3, + 'classmethod': classmethod(lambda c: 1), + 'staticmethod': staticmethod(lambda: 1), + }) self.assertEqual(set(['one', 'three']), set(d)) self.assertEqual(set([1, 3]), set(d.values())) |