def METHOD_NAME(self):
    call_command(
        "createinitialsuperuser",
        username="maykin",
        email="support@maykinmedia.nl",
        generate_password=True,
        stdout=io.StringIO(),
        stderr=io.StringIO(),
    )
    user = User.objects.get()
    self.assertTrue(user.has_usable_password())
    self.assertTrue(user.is_active)
    self.assertTrue(user.is_staff)
    self.assertTrue(user.is_superuser)
    self.assertEqual(len(mail.outbox), 1)
    sent_mail = mail.outbox[0]
    link = "unknown url"
    self.assertEqual(
        sent_mail.subject, f"Credentials for {settings.PROJECT_NAME} ({link})"
    )
    self.assertListEqual(sent_mail.recipients(), ["support@maykinmedia.nl"])