How do you write tests for the argparse portion of a python module? May 26, 2022 by IT Nursery I have a Python module that uses the argparse library. How do I write tests for that section of the code base? 9 Answers 9