def METHOD_NAME(self):
    try:
        a = {[1]:2}
    except TypeError:
        pass
    else:
        self.fail("list as dict key should raise TypeError")
    try:
        a = {{1:2}:3}
    except TypeError:
        pass
    else:
        self.fail("dict as dict key should raise TypeError")