def METHOD_NAME(self):
    d = self.new_dict(key='value')
    # popitem() must change the version if the dict is not empty
    self.check_version_changed(d, d.popitem)
    # popitem() must not change the version if the dict is empty
    self.check_version_dont_change(d, self.assertRaises, KeyError,
                                   d.popitem)