def _test(self, stmt, row, returning=None, inserted_primary_key=False):
    r = testing.db.execute(stmt)
    if returning:
        returned = r.first()
        eq_(returned, returning)
    elif (inserted_primary_key is not False):
        eq_(r.inserted_primary_key, inserted_primary_key)
    eq_(testing.db.execute(self.tables.foo.select()).first(), row)
def _test(self, stmt, row, returning=None, inserted_primary_key=False):
    r = testing.db.execute(stmt)
    if returning:
        returned = r.first()
        eq_(returned, returning)
    elif (inserted_primary_key is not False):
        eq_(r.inserted_primary_key, inserted_primary_key)
    eq_(testing.db.execute(self.tables.foo.select()).first(), row)