async def METHOD_NAME(self):
    f = lambda tx: tx.execute('INSERT Foo { name := "foo" }')
    with self.assertRaises(edgedb.ConstraintViolationError):
        await self.execute_concurrent_txs(f, f)
    await self.assert_query_result(
        r"""
            SELECT Foo { name } FILTER .name = "foo"
        """,
        [{'name': 'foo'}],
    )