old_contents: from mcstatus.pinger import PingResponse
  from unittest import TestCase
  from unittest.mock import MagicMock
  from src.Minecraft import Minecraft
  import re
  
  status_vanilla_empty = PingResponse({
      'description': {'text': 'Minecraft is awesome!', },
      'players': {'online': 0, 'max': 8, },
      'version': {'name': '1.12.1', 'protocol': 338, },
  })
  
  status_modded_online = PingResponse({
      'description': {'text': 'fake description', },
      'modinfo': {'modList': [
          {'modid': 'FML', 'version': '8.0.99.99'},
          {'modid': 'forge', 'version': '14.22.0.2460'},
      ], },
      'players': {'online': 1, 'max': 8, 'sample': [{
          'id': '291b495c-b03b-46bb-b2c8-e31ad4cdef44',
          'name': 'fake_name',
      }, ], },
      'version': {'name': 'fake_name', 'protocol': 316, },
  })
  
  
  class TestMinecraft(TestCase):
      def setUp(self):
          self.mc = Minecraft(MinecraftServer=MagicMock)
  
      def test__can_display_server_status_from_vanilla_server(self):
          status_re = re.compile('^players \d+/\d+$')
          self.mc.mc_server.status.return_value = status_vanilla_empty
          status_message = self.mc.get_formatted_status_message()
          assert status_re.match(status_message) is not None
  
      def test__forge_version_is_not_installed_on_vanillar(self):
          self.mc.mc_server.status.return_value = status_vanilla_empty
          forge_message = self.mc.get_forge_version_message()
          assert forge_message == 'The server does not have Forge installed'
  
      def test__forge_version_message_matches_modid_forge_version(self):
          self.mc.mc_server.status.return_value = status_modded_online
          forge_message = self.mc.get_forge_version_message()
          assert forge_message == 'Forge is at version 14.22.0.2460'
  
      def test__can_fetch_modded_server_status(self):
          status_re = re.compile(
              '^\d+ mods loaded, players \d+/\d+: `(.*(, )?)*`$'
          )
          self.mc.mc_server.status.return_value = status_modded_online
          status_message = self.mc.get_formatted_status_message()
          assert status_re.match(status_message) is not None
  
new_contents: from mcstatus.pinger import PingResponse
  from unittest import TestCase
  from unittest.mock import MagicMock
  from src.Minecraft import Minecraft
  import re
  
  status_vanilla_empty = PingResponse({
      'description': {'text': 'Minecraft is awesome!', },
      'players': {'online': 0, 'max': 8, },
      'version': {'name': '1.12.1', 'protocol': 338, },
  })
  
  status_modded_online = PingResponse({
      'description': {'text': 'fake description', },
      'modinfo': {'modList': [
          {'modid': 'FML', 'version': '8.0.99.99'},
          {'modid': 'forge', 'version': '14.22.0.2460'},
      ], },
      'players': {'online': 1, 'max': 8, 'sample': [{
          'id': '291b495c-b03b-46bb-b2c8-e31ad4cdef44',
          'name': 'fake_name',
      }, ], },
      'version': {'name': 'fake_name', 'protocol': 316, },
  })
  
  
  class TestMinecraft(TestCase):
      def setUp(self):
          self.mc = Minecraft(MinecraftServer=MagicMock)
  
      def test__can_display_server_status_from_vanilla_server(self):
          status_re = re.compile('^players \d+/\d+$')
          self.mc.mc_server.status.return_value = status_vanilla_empty
          status_message = self.mc.get_formatted_status_message()
          assert status_re.match(status_message) is not None
  
      def test__forge_version_is_not_installed_on_vanilla(self):
          self.mc.mc_server.status.return_value = status_vanilla_empty
          forge_message = self.mc.get_forge_version_message()
          assert forge_message == 'The server does not have Forge installed'
  
      def test__forge_version_message_matches_modid_forge_version(self):
          self.mc.mc_server.status.return_value = status_modded_online
          forge_message = self.mc.get_forge_version_message()
          assert forge_message == 'Forge is at version 14.22.0.2460'
  
      def test__can_fetch_modded_server_status(self):
          status_re = re.compile(
              '^\d+ mods loaded, players \d+/\d+: `(.*(, )?)*`$'
          )
          self.mc.mc_server.status.return_value = status_modded_online
          status_message = self.mc.get_formatted_status_message()
          assert status_re.match(status_message) is not None
  
subject: fix typo