Beispiel #1
0
 def test_help(self):
   all_cl = []
   for sub in ['clusters', 'topologies', 'metrics',
               'components', 'containers', 'help']:
     all_cl.append(['help', sub])
   for cl in all_cl:
     self.assertEqual(0, main.main(cl))
Beispiel #2
0
 def test_help(self):
   all_cl = []
   for sub in ['clusters', 'topologies', 'metrics',
               'components', 'containers', 'help']:
     all_cl.append(['help', sub])
   for cl in all_cl:
     self.assertEqual(0, main.main(cl))
Beispiel #3
0
 def test_sample_clusters(self):
   good = self.sample_cluster_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
Beispiel #4
0
 def test_pp(self):
   good, bad = self.sample_pp_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
   self.assertEqual(1, main.main(bad))
Beispiel #5
0
 def test_lp(self):
   good, _ = self.sample_lp_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
Beispiel #6
0
 def test_topo(self):
   for cl in self.sample_topo_cls():
     self.assertEqual(0, main.main(cl))
Beispiel #7
0
 def test_sample_clusters(self):
   good = self.sample_cluster_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
Beispiel #8
0
 def test_pp(self):
   good, bad = self.sample_pp_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
   self.assertEqual(1, main.main(bad))
Beispiel #9
0
 def test_lp(self):
   good, _ = self.sample_lp_cls()
   for cl in good:
     self.assertEqual(0, main.main(cl))
Beispiel #10
0
 def test_topo(self):
   for cl in self.sample_topo_cls():
     self.assertEqual(0, main.main(cl))