How do I set sys.argv so I can unit test it?

I would like to set sys.argv so I can unit test passing in different combinations. The following doesn't work: #!/usr/bin/env python import argparse, sys def test_parse_args(): global sys.ar...