Permalink
Browse files

Issue 226: Fixed, but updated freetds test to include multiple ints.

  • Loading branch information...
1 parent 892d79e commit e81708a980880330b74d53948419359122ec2d39 @mkleehammer committed Dec 23, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 tests2/freetdstests.py
View
13 tests2/freetdstests.py
@@ -554,11 +554,14 @@ def test_datetime_fraction_rounded(self):
#
def test_int(self):
- value = 1234
- self.cursor.execute("create table t1(n int)")
- self.cursor.execute("insert into t1 values (?)", value)
- result = self.cursor.execute("select n from t1").fetchone()[0]
- self.assertEquals(result, value)
+ # Issue 226: Failure if there is more than one int?
+ value1 = 1234
+ value2 = -1234
+ self.cursor.execute("create table t1(n1 int, n2 int)")
+ self.cursor.execute("insert into t1 values (?, ?)", value1, value2)
+ row = self.cursor.execute("select n1, n2 from t1").fetchone()
+ self.assertEquals(row.n1, value1)
+ self.assertEquals(row.n2, value2)
def test_negative_int(self):
value = -1

0 comments on commit e81708a

Please sign in to comment.