'test that fetching a long integer returns such in Python'

def testReturnAsLong(self):

    self.cursor.execute('\n                                                                select    NullableCol\n                                                                from    TestNumbers\n                                                                where    IntCol    =    9')
    (col,) = self.cursor.fetchone()
    self.failUnless(isinstance(col, long), 'long    integer    not    returned')
