def METHOD_NAME(self):
    for kw in 'self', 'other', 'iterable':
        self.assertEqual(list(collections.UserDict(**{kw: 42}).items()),
                         [(kw, 42)])
    self.assertEqual(list(collections.UserDict({}, dict=42).items()),
                     [('dict', 42)])
    self.assertEqual(list(collections.UserDict({}, dict=None).items()),
                     [('dict', None)])
    with self.assertWarnsRegex(PendingDeprecationWarning, "'dict'"):
        self.assertEqual(list(collections.UserDict(dict={'a': 42}).items()),
                         [('a', 42)])
    self.assertRaises(TypeError, collections.UserDict, 42)
    self.assertRaises(TypeError, collections.UserDict, (), ())
    self.assertRaises(TypeError, collections.UserDict.__init__)