Пример #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])
Пример #2
0
 def test_RandomRing():
     G = graphs.RandomRing()
Пример #3
0
 def test_randomring(self):
     graphs.RandomRing()
Пример #4
0
 def test_RandomRing():
     G = graphs.RandomRing()
     needed_attributes_testing(G)