def test_main_help(self):
     self.assertEqual(0, hm.main(['hod', '--help']))
 def test_main_bad_cmd(self):
     self.assertEqual(1, hm.main(['hod', 'banana']))
 def test_main_good_cmd(self):
     self.assertEqual(0, hm.main(['hod', 'dists']))
 def test_main_no_args(self):
     self.assertEqual(0, hm.main([]))
예제 #5
0
 def test_main_help(self):
     self.assertEqual(0, hm.main(['hod', '--help']))
예제 #6
0
 def test_main_good_cmd(self):
     self.assertEqual(0, hm.main(['hod', 'dists']))
예제 #7
0
 def test_main_bad_cmd(self):
     self.assertEqual(1, hm.main(['hod', 'banana']))
예제 #8
0
 def test_main_no_args(self):
     self.assertEqual(0, hm.main([]))