Skip to content

Commit

Permalink
Remove other pointless tests of Python's instance attr semantics.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 9, 2012
1 parent 0faa2d6 commit b04625d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/OFS/tests/testObjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,42 +434,18 @@ def test_items(self):
si1 = SimpleItem('1')
om['1'] = si1
self.assertTrue(('1', si1) in om.items())
# A contained item overwrites the method
self.assertTrue(hasattr(om.items, 'im_func'))
om.__dict__['items'] = si1
self.assertTrue(aq_base(om.items) is si1)
self.assertTrue(aq_base(om['items']) is si1)
# Once the object is gone, the method is back
del om['items']
self.assertTrue(hasattr(om.items, 'im_func'))

def test_keys(self):
om = self._makeOne()
si1 = SimpleItem('1')
om['1'] = si1
self.assertTrue('1' in om.keys())
# A contained item overwrites the method
self.assertTrue(hasattr(om.keys, 'im_func'))
om.__dict__['keys'] = si1
self.assertTrue(aq_base(om.keys) is si1)
self.assertTrue(aq_base(om['keys']) is si1)
# Once the object is gone, the method is back
del om['keys']
self.assertTrue(hasattr(om.keys, 'im_func'))

def test_values(self):
om = self._makeOne()
si1 = SimpleItem('1')
om['1'] = si1
self.assertTrue(si1 in om.values())
# A contained item overwrites the method
self.assertTrue(hasattr(om.values, 'im_func'))
om.__dict__['values'] = si1
self.assertTrue(aq_base(om.values) is si1)
self.assertTrue(aq_base(om['values']) is si1)
# Once the object is gone, the method is back
del om['values']
self.assertTrue(hasattr(om.values, 'im_func'))

def test_list_imports(self):
om = self._makeOne()
Expand Down

0 comments on commit b04625d

Please sign in to comment.