def test_nodes(self):
    wait = False
    self.assertTrue(len(self.g) == 3)
    for n in self.nodes:
      self.assertTrue(n in self.g)
    for n in self.g.nodes:
      self.assertTrue(n in self.nodes)
    self.g.remove(2)
    self.assertTrue(1 in self.g)
    self.assertTrue(3 in self.g)
    self.assertFalse(2 in self.g)
    self.assertFalse(4 in self.g)
    self.assertTrue(len(self.g) == 2)
    self.assertFalse(self.g.is_empty())
    self.g.remove(1)
    self.g.remove(3)
    self.assertTrue(self.g.is_empty())
dataset/ETHPy150Open bloomreach/briefly/tests/briefly/test_dag.py/TestCaseIslands.test_nodes/original