

def test_range_integer_null(self):
    object1 = RangeInteger2(name='foo')
    object3 = RangeInteger5(name='foo')
    self.session.add_all([object1, object3])
    self.session.commit()
    object2 = self.session.query(RangeInteger2).from_statement(text('SELECT * FROM test_rangeinteger2_null WHERE id = :id')).params(id=object1.id).first()
    object4 = self.session.query(RangeInteger5).from_statement(text('SELECT * FROM test_rangeinteger5_null WHERE id = :id')).params(id=object3.id).first()
    self.assertTrue(object1.name, object2.name)
    self.assertTrue(object3.name, object4.name)

dataset/ETHPy150Open maxtepkeev/architect/tests/test_sqlalchemy.py PostgresqlSqlAlchemyPartitionTestCase.test_range_integer_null/original