def testDelDicts(self): # This is a simple test to make sure our function works before # proceeding, as we use this in tearDown. # This will only work as long as DICTIONARIES is a simple dictionary. stringer.DICTIONARIES = {"dog": "cats"} stringer.deldicts() self.assertEqual(len(stringer.DICTIONARIES), 0, "deldicts deletes all dictionaries..")
def tearDown(self): stringer.DICTIONARY_KEY = default_dictionary_key stringer.deldicts()