def METHOD_NAME(self):
    # Objects must have __len__() and __getitem__() implemented.
    class NoLen(object):
        def __getitem__(self): return 1
    nl = NoLen()
    self.assertRaises(TypeError, reversed, nl)
    class NoGetItem(object):
        def __len__(self): return 2
    ngi = NoGetItem()
    self.assertRaises(TypeError, reversed, ngi)