Commits

Anonymous committed 6801bfb

Fixed error in teardown for LazyRecorderFactory

Comments (0)

Files changed (2)

         f.setup()
         assert f.fly == 'FLutter', f.fly
 
+    def test_lazy_recorder_factories_are_destroyed(self):
+
+        class fixture(Fixture):
+            item = Factory(Mock).lazily_resolved
+
+        f = fixture()
+        f.setup()
+        f.teardown()
+
 
 class TestSeq(object):
 
         return self.factory.create_object(context)
 
     def destroy_object(self, context, ob):
-        return self.factory.destroy_object(ob)
+        return self.factory.destroy_object(context, ob)
 
     def replay_with_resolved(self, fixture, ob):
         """