def test_parse_separates_kwargs(self): command = Command(run=function) command.add_argument(Arg('keyword1', required=False, default=0)) args, kwargs = command.parse(['simple']) self.assertIn('keyword1', kwargs)
def test_parse_separates_args(self): command = Command(run=function) command.add_argument(Arg('simple', required=True)) args, kwargs = command.parse(['simple']) self.assertIn('simple', args)