Esempio n. 1
0
 def setUp(self):
     true = ["unexpected extra arguments to select",
             "bad or malformed request",
             "could not access the following folders",
             "invalid mailbox name",
             "go to the folders page"]
     self.true = expand_cases(true)
     self.false = expand_cases(['', "mary had a little lamb", "i want to be an edge case"])
Esempio n. 2
0
 def setUp(self):
     true = [
         "unexpected extra arguments to select", "bad or malformed request",
         "could not access the following folders", "invalid mailbox name",
         "go to the folders page"
     ]
     self.true = expand_cases(true)
     self.false = expand_cases(
         ['', "mary had a little lamb", "i want to be an edge case"])
Esempio n. 3
0
 def setUp(self):
     true = [
         "you have an error in your sql syntax",
         "supplied argument is not a valid mysql",
         "[microsoft][odbc microsoft acess driver]",
         "[microsoft][odbc sql server driver]",
         "microsoft ole db provider for odbc drivers",
         "java.sql.sqlexception: syntax error or access violation",
         "postgresql query failed: error: parser:",
         "db2 sql error:",
         "dynamic sql error",
         "sybase message:",
         "ora-01756: quoted string not properly terminated",
         "ora-00933: sql command not properly ended",
         "pls-00306: wrong number or types",
         "incorrect syntax near",
         "unclosed quotation mark before",
         "syntax error containing the varchar value",
         "ora-01722: invalid number",
         "ora-01858: a non-numeric character was found where a numeric was expected",
         "ora-00920: invalid relational operator",
         "ora-00920: missing right parenthesis",
     ]
     self.true = expand_cases([x.lower() for x in true])
     self.false = ["", "mary had a little lamb", "i want to be an edge case"]
Esempio n. 4
0
 def setUp(self):
     true = [
         "System.Xml.XPath.XPathException:",
         "MS.Internal.Xml.",
         "Unknown error in XPath",
         "org.apache.xpath.XPath",
         "A closing bracket expected in",
         "An operand in Union Expression does not produce a node-set",
         "Cannot convert expression to a number",
         "Document Axis does not allow any context Location Steps",
         "Empty Path Expression",
         "DOMXPath::" "Empty Relative Location Path",
         "Empty Union Expression",
         "Expected ')' in",
         "Expected node test or name specification after axis operator",
         "Incompatible XPath key",
         "Incorrect Variable Binding",
         "libxml2 library function failed",
         "libxml2",
         "xmlsec library function",
         "xmlsec",
         "error '80004005'",
         "A document must contain exactly one root element.",
         '<font face="Arial" size=2>Expression must evaluate to a node-set.',
         "Expected token ']'",
         "<p>msxml4.dll</font>",
         "<p>msxml3.dll</font>",
         "4005 Notes error: Query is not understandable",
     ]
     self.true = expand_cases([x.lower() for x in true])
     self.false = ["", "mary had a little lamb", "i want to be an edge case"]
Esempio n. 5
0
 def setUp(self):
     true = ['System.Xml.XPath.XPathException:',
             'MS.Internal.Xml.',
             'Unknown error in XPath',
             'org.apache.xpath.XPath',
             'A closing bracket expected in',
             'An operand in Union Expression does not produce a node-set',
             'Cannot convert expression to a number',
             'Document Axis does not allow any context Location Steps',
             'Empty Path Expression',
             'DOMXPath::'
             'Empty Relative Location Path',
             'Empty Union Expression',
             "Expected ')' in",
             'Expected node test or name specification after axis operator',
             'Incompatible XPath key',
             'Incorrect Variable Binding',
             'libxml2 library function failed',
             'libxml2',
             'xmlsec library function',
             'xmlsec',
             "error '80004005'",
             "A document must contain exactly one root element.",
             '<font face="Arial" size=2>Expression must evaluate to a node-set.',
             "Expected token ']'",
             "<p>msxml4.dll</font>",
             "<p>msxml3.dll</font>",
             '4005 Notes error: Query is not understandable']
     self.true = expand_cases([x.lower() for x in true])
     self.false = ['', "mary had a little lamb", "i want to be an edge case"]
Esempio n. 6
0
 def setUp(self):
     true = ["you have an error in your sql syntax",
             "supplied argument is not a valid mysql",
             "[microsoft][odbc microsoft acess driver]",
             "[microsoft][odbc sql server driver]",
             "microsoft ole db provider for odbc drivers",
             "java.sql.sqlexception: syntax error or access violation",
             "postgresql query failed: error: parser:",
             "db2 sql error:",
             "dynamic sql error",
             "sybase message:",
             "ora-01756: quoted string not properly terminated",
             "ora-00933: sql command not properly ended",
             "pls-00306: wrong number or types",
             "incorrect syntax near",
             "unclosed quotation mark before",
             "syntax error containing the varchar value",
             "ora-01722: invalid number",
             "ora-01858: a non-numeric character was found where a numeric was expected",
             "ora-00920: invalid relational operator",
             "ora-00920: missing right parenthesis"]
     self.true = expand_cases([x.lower() for x in true])
     self.false = ['', "mary had a little lamb", "i want to be an edge case"]