def test_args_document_source_requested_long(self): args = pygrams.get_args(['--doc_source=my-test']) self.assertEqual('my-test', args.doc_source)
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)
def test_args_json_requested_short(self): args = pygrams.get_args(['-j']) self.assertTrue(args.json)
def test_args_json_requested_long(self): args = pygrams.get_args(['--json']) self.assertTrue(args.json)
def test_args_json_not_requested(self): args = pygrams.get_args([]) self.assertFalse(args.json)