def test_randomring(self): graphs.RandomRing() G = graphs.RandomRing(angles=[0, 2, 1]) self.assertEqual(G.N, 3) self.assertRaises(ValueError, graphs.RandomRing, 2) self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2]) self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2, 7]) self.assertRaises(ValueError, graphs.RandomRing, angles=[0, 2, -1])
def test_RandomRing(): G = graphs.RandomRing()
def test_randomring(self): graphs.RandomRing()
def test_RandomRing(): G = graphs.RandomRing() needed_attributes_testing(G)