async def test_subquery_filter(self):
    t1 = (await Tournament.create(name='1'))
    ret = (await Tournament.filter(pk=Subquery(Tournament.filter(pk=t1.pk).values('id'))).first())
    self.assertEqual(ret, t1)
async def test_subquery_filter(self):
    t1 = (await Tournament.create(name='1'))
    ret = (await Tournament.filter(pk=Subquery(Tournament.filter(pk=t1.pk).values('id'))).first())
    self.assertEqual(ret, t1)