def test_parseTimeInvalidValues(self):
        """
        L{imap4.parseTime} raises L{ValueError} when given a time
        string composed of invalid values.
        """
        invalidStrings = [
            "invalid-July-2017",
            "2-invalid-2017",
            "2-July-invalid",
        ]
        for invalid in invalidStrings:
            self.assertRaises(ValueError, imap4.parseTime, invalid)

        L{imap4.parseTime} raises L{ValueError} when given a time
        string composed of invalid values.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py