def test_components(self): components = pynet.components(self.G) self.assertEqual(pynet.no_nodes(components[0]), 230) components = pynet.components(self.G2) self.assertEqual(len(components), 2)
def test_no_nodes(self): self.assertEqual(pynet.no_nodes(self.G), 230)