async def test_join_count(self):
    tour = (await Tournament.create(name='moo'))
    (await MinRelation.create(tournament=tour))
    self.assertEqual((await MinRelation.all().count()), 1)
    self.assertEqual((await MinRelation.filter(tournament__id=tour.id).count()), 1)
async def test_join_count(self):
    tour = (await Tournament.create(name='moo'))
    (await MinRelation.create(tournament=tour))
    self.assertEqual((await MinRelation.all().count()), 1)
    self.assertEqual((await MinRelation.filter(tournament__id=tour.id).count()), 1)