From 9a0f36ba8f84cde279b087d728ee911573d7dad5 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Wed, 25 Jan 2012 11:45:02 +0900
Subject: [PATCH] assertHasAttribute and failIfHasAttribute have been added in
 ERP5TypeTestCase.

---
 .../ERP5Type/tests/testDynamicClassGeneration.py | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/product/ERP5Type/tests/testDynamicClassGeneration.py b/product/ERP5Type/tests/testDynamicClassGeneration.py
index a6d3880809..ec611936dd 100644
--- a/product/ERP5Type/tests/testDynamicClassGeneration.py
+++ b/product/ERP5Type/tests/testDynamicClassGeneration.py
@@ -1225,22 +1225,6 @@ class TestZodbExtensionComponent(_TestZodbComponent):
     self._component_tool = self._portal.portal_components
     self._component_tool.reset()
 
-  def assertHasAttribute(self, obj, attribute, msg=None):
-    """
-    XXX-arnau: copy/paste from TestZodbPropertySheet
-    """
-    self.failIfEqual(None, getattr(obj, attribute, None),
-                     msg or '%s: no attribute %s' % (obj.__name__,
-                                                     attribute))
-
-  def failIfHasAttribute(self, obj, attribute, msg=None):
-    """
-    XXX-arnau: copy/paste from TestZodbPropertySheet
-    """
-    self.assertEquals(None, getattr(obj, attribute, None),
-                      msg or '%s: attribute %s present' % (obj.__name__,
-                                                           attribute))
-
   def testValidateInvalidate(self):
     """
     The new Extension Component should only be in erp5.component.extension
-- 
2.30.9