async def test_select_related(self):
    tournament = (await Tournament.create(name='1'))
    reporter = (await Reporter.create(name='Reporter'))
    event = (await Event.create(name='1', tournament=tournament, reporter=reporter))
    event = (await Event.all().select_related('tournament', 'reporter').get(pk=event.pk))
    self.assertEqual(event.tournament.pk, tournament.pk)
    self.assertEqual(event.reporter.pk, reporter.pk)
async def test_select_related(self):
    tournament = (await Tournament.create(name='1'))
    reporter = (await Reporter.create(name='Reporter'))
    event = (await Event.create(name='1', tournament=tournament, reporter=reporter))
    event = (await Event.all().select_related('tournament', 'reporter').get(pk=event.pk))
    self.assertEqual(event.tournament.pk, tournament.pk)
    self.assertEqual(event.reporter.pk, reporter.pk)