Beispiel #1
0
 def test_args_document_source_requested_long(self):
     args = pygrams.get_args(['--doc_source=my-test'])
     self.assertEqual('my-test', args.doc_source)
Beispiel #2
0
 def test_args_output_name_requested_long(self):
     args = pygrams.get_args(['--outputs_name=my/test/name.txt'])
     self.assertEqual('my/test/name.txt', args.outputs_name)
Beispiel #3
0
 def test_args_json_requested_short(self):
     args = pygrams.get_args(['-j'])
     self.assertTrue(args.json)
Beispiel #4
0
 def test_args_json_requested_long(self):
     args = pygrams.get_args(['--json'])
     self.assertTrue(args.json)
Beispiel #5
0
 def test_args_json_not_requested(self):
     args = pygrams.get_args([])
     self.assertFalse(args.json)