Make test actually fail on for unfixed behaviour
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class MockTest(unittest.TestCase):
|
|||||||
cursor = self.conn.cursor()
|
cursor = self.conn.cursor()
|
||||||
cursor.execute("dummy stmt")
|
cursor.execute("dummy stmt")
|
||||||
result = cursor.fetchone()
|
result = cursor.fetchone()
|
||||||
self.assertEquals(result[0], 12345)
|
self.assertEquals(str(result[0]), "12345")
|
||||||
|
|
||||||
def test_sql_exception_on_execute(self):
|
def test_sql_exception_on_execute(self):
|
||||||
self.conn.jconn.mockExceptionOnExecute("java.sql.SQLException", "expected")
|
self.conn.jconn.mockExceptionOnExecute("java.sql.SQLException", "expected")
|
||||||
|
|||||||
Reference in New Issue
Block a user