Port the dictionary tests from test_types.py to unittest. Collect as much

mapping tests as possible in mapping_test.py and reuse the tests in
test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py.
From SF patch #736962.
This commit is contained in:
Walter Dörwald 2004-05-31 16:29:04 +00:00
parent cbd0b365c1
commit 0a6d0ff8d9
7 changed files with 704 additions and 360 deletions

View file

@ -205,9 +205,9 @@ class StatAttributeTests(unittest.TestCase):
except TypeError:
pass
from test_userdict import TestMappingProtocol
from test import mapping_tests
class EnvironTests(TestMappingProtocol):
class EnvironTests(mapping_tests.BasicTestMappingProtocol):
"""check that os.environ object conform to mapping protocol"""
_tested_class = None
def _reference(self):