def test_setitemraise(self):
        "Setitemraise"
        datagraph = self.datagraph
        datagraph += self.get_node(1)
        try:
            datagraph[self.get_node(1)] = self.get_node(2)
            raise KeyError('failed to catch bad setitem attempt')
        except __HOLE__:
            pass # THIS IS THE CORRECT RESULT
dataset/ETHPy150Open cjlee112/pygr/tests/graph_test.py/Mapping_Test.test_setitemraise