def tearDown(self): EncoderMixIn.tearDown(self) pyamf.unregister_class(self.TestObject) pyamf.unregister_class(self.TestSubObject)