def METHOD_NAME(self):
    graph = NasBench301SearchSpace()
    spec = (((0, 1), (1, 4), (0, 6), (2, 0), (2, 6), (1, 4), (0, 5), (2, 2)),
            ((0, 5), (1, 6), (0, 1), (1, 5), (2, 5), (1, 2), (3, 3), (0, 3)))
    graph.set_spec(spec)
    retrieved_spec = graph.get_hash()
    self.assertEqual(spec, retrieved_spec)
    new_spec = (((0, 4), (1, 4), (0, 6), (2, 0), (2, 6), (1, 4), (0, 5), (2, 2)),
                ((0, 4), (1, 4), (0, 1), (1, 5), (2, 5), (1, 2), (3, 3), (0, 3)))
    try:
        graph.set_spec(new_spec)
    except Exception as e:
        self.assertTrue(isinstance(e, AssertionError))
        exception_raised = True
    self.assertTrue(exception_raised)