def test_invalidValues(self):
        """
        Passing wrong values raises an error.
        """
        argV = "--fooint egg".split()
        self.assertRaises(usage.UsageError, self.usage.parseOptions, argV)

        Passing wrong values raises an error.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_usage.py