

def test_range_string_lastchars(self):
    object1 = RangeStringLastchars2(name='foo', title='abcdef')
    object3 = RangeStringLastchars5(name='foo', title='abcdef')
    self.session.add_all([object1, object3])
    object1.session.commit()
    object2 = self.session.query(RangeStringLastchars2).from_statement(text('SELECT * FROM test_rangestring_lastchars2_ef WHERE id = :id')).params(id=object1.id).first()
    object4 = self.session.query(RangeStringLastchars5).from_statement(text('SELECT * FROM test_rangestring_lastchars5_bcdef 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_string_lastchars/VarMisuse@49/77 `self`->`object1`