def test_main(self): with patch.object(commandline, 'parse_args') as pa: commandline.main() pa.assert_called_with(sys.argv[1:])