def test_column_mapped_assertions(self):
assert_raises_message(sa_exc.ArgumentError,
"Column-based expression object expected "
- "for argument 'mapping_spec'; got: 'a', "
- "type <type 'str'>",
+ "for argument 'mapping_spec'; got: 'a'",
collections.column_mapped_collection, 'a')
assert_raises_message(sa_exc.ArgumentError,
"Column-based expression object expected "
- "for argument 'mapping_spec'; got: 'a', "
- "type <class 'sqlalchemy.sql.expression._"
- "TextClause'>",
+ "for argument 'mapping_spec'; got: 'a'",
collections.column_mapped_collection,
text('a'))