diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_base.py | 2 | ||||
-rw-r--r-- | tests/test_using.py | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_base.py b/tests/test_base.py index 7ec3d0e..c8109db 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -42,7 +42,7 @@ class FakeDjangoModel(object): return instance def __init__(self, **kwargs): - for name, value in kwargs.iteritems(): + for name, value in kwargs.items(): setattr(self, name, value) self.id = None diff --git a/tests/test_using.py b/tests/test_using.py index 7e141eb..7cebacb 100644 --- a/tests/test_using.py +++ b/tests/test_using.py @@ -56,7 +56,7 @@ class FakeModel(object): objects = FakeModelManager() def __init__(self, **kwargs): - for name, value in kwargs.iteritems(): + for name, value in kwargs.items(): setattr(self, name, value) self.id = None @@ -763,7 +763,7 @@ class SubFactoryTestCase(unittest.TestCase): def testSubFactoryAndSequence(self): class TestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class TestObjectFactory(factory.Factory): @@ -784,7 +784,7 @@ class SubFactoryTestCase(unittest.TestCase): def testSubFactoryOverriding(self): class TestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class TestObjectFactory(factory.Factory): @@ -793,7 +793,7 @@ class SubFactoryTestCase(unittest.TestCase): class OtherTestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class WrappingTestObjectFactory(factory.Factory): @@ -813,7 +813,7 @@ class SubFactoryTestCase(unittest.TestCase): class TestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class TestObjectFactory(factory.Factory): @@ -839,7 +839,7 @@ class SubFactoryTestCase(unittest.TestCase): class TestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class TestObjectFactory(factory.Factory): @@ -866,7 +866,7 @@ class SubFactoryTestCase(unittest.TestCase): """Test inheriting from a factory with subfactories, overriding.""" class TestObject(object): def __init__(self, **kwargs): - for k, v in kwargs.iteritems(): + for k, v in kwargs.items(): setattr(self, k, v) class TestObjectFactory(factory.Factory): |