Esempio n. 1
0
 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])
Esempio n. 2
0
 def test_RandomRing():
     G = graphs.RandomRing()
Esempio n. 3
0
 def test_randomring(self):
     graphs.RandomRing()
Esempio n. 4
0
 def test_RandomRing():
     G = graphs.RandomRing()
     needed_attributes_testing(G)