@testing.requires.empty_inserts
@testing.requires.returning
def test_no_inserted_pk_on_returning(self):
    users = self.tables.users
    result = testing.db.execute(users.insert().returning(users.c.user_id, users.c.user_name))
    assert_raises_message(exc.InvalidRequestError, "Can't call inserted_primary_key when returning\\(\\) is used.", getattr, result, 'inserted_primary_key')
@testing.requires.empty_inserts
@testing.requires.returning
def test_no_inserted_pk_on_returning(self):
    users = self.tables.users
    result = testing.db.execute(users.insert().returning(users.c.user_id, users.c.user_name))
    assert_raises_message(exc.InvalidRequestError, "Can't call inserted_primary_key when returning\\(\\) is used.", getattr, result, 'inserted_primary_key')