def test_errorCoerce(self):
        self.assertRaises(ValueError, usage.portCoerce, "")
        self.assertRaises(ValueError, usage.portCoerce, "-21")
        self.assertRaises(ValueError, usage.portCoerce, "212189")
        self.assertRaises(ValueError, usage.portCoerce, "foo")
Test error path.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_usage.py/PortCoerceTestCase.test_errorCoerce