Return a dictionary of values which are invariant by storage in the object under test.
(self)
| 13 | type2test = None # which class is being tested (overwrite in subclasses) |
| 14 | |
| 15 | def _reference(self): |
| 16 | """Return a dictionary of values which are invariant by storage |
| 17 | in the object under test.""" |
| 18 | return {"1": "2", "key1":"value1", "key2":(1,2,3)} |
| 19 | def _empty_mapping(self): |
| 20 | """Return an empty mapping object""" |
| 21 | return self.type2test() |