Beispiel #1
0
 def test_CLI_defaults(self):
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(['-stdin'])
     self.assertEqual(args.files, '')
     self.assertEqual(args.help, False)
     self.assertEqual(args.nalt, 10)
     self.assertEqual(args.Dictionary, ['std'])
     self.assertEqual(args.dialects, ['std'])
 def test_CLI_defaults(self):
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(["-stdin"])
     self.assertEqual(args.files, "")
     self.assertEqual(args.help, False)
     self.assertEqual(args.nalt, 10)
     self.assertEqual(args.Dictionary, ["std"])
     self.assertEqual(args.dialects, ["std"])
Beispiel #3
0
 def test_CLI_dicts(self):
     ips = ['-Dict', 'std', 'wikipedia', 'madurai']
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.Dictionary, ips[1:])
Beispiel #4
0
 def test_CLI_files(self):
     ips = ['-files', 'poonga', 'vanam', 'sethu', 'ezhuthu']
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.files, ips[1:])
Beispiel #5
0
 def test_CLI_interface_help(self):
     return
     # find a way to run this test which exits the suite
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(['--help'])
     self.assertEqual(args.help, True)
 def test_CLI_dicts(self):
     ips = ["-Dict", "std", "wikipedia", "madurai"]
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.Dictionary, ips[1:])
 def test_CLI_files(self):
     ips = ["-files", "poonga", "vanam", "sethu", "ezhuthu"]
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.files, ips[1:])
 def test_CLI_dicts(self):
     ips = ["-Dict", "std", "wikipedia", "madurai"]
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.Dictionary, ips[1:])
 def test_CLI_files(self):
     ips = ["-files", "poonga", "vanam", "sethu", "ezhuthu"]
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(ips)
     self.assertEqual(args.files, ips[1:])
 def test_CLI_interface_help(self):
     return
     # find a way to run this test which exits the suite
     _, parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args(["--help"])
     self.assertEqual(args.help, True)
 def test_CLI_dicts(self):
     ips = ['-Dict','std','wikipedia','madurai']
     _,parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args( ips )
     self.assertEqual(args.Dictionary,ips[1:])
 def test_CLI_files(self):
     ips = ['-files','poonga','vanam','sethu','ezhuthu']
     _,parser = Solthiruthi.get_CLI_options(do_parse=False)
     args = parser.parse_args( ips )
     self.assertEqual(args.files,ips[1:])