from expects import *

from pygametemplate import Game

import datetime


class TestGame(Game):
    """An altered Game class for testing purposes."""
    def __init__(self, resolution):
        super(TestGame, self).__init__(resolution)

    def log(self, *error_message):
        """Altered log function which just raises errors."""
        raise


game = TestGame((1280, 720))

from expects import *

from example_view import ExampleView
from pygametemplate import Game

import datetime


class TestGame(Game):
    """An altered Game class for testing purposes."""
    def __init__(self, StartingView, resolution):
        super(TestGame, self).__init__(StartingView, resolution)

    def log(self, *error_message):
        """Altered log function which just raises errors."""
        raise


game = TestGame(ExampleView, (1280, 720))

Fix TestGame class to match the View update to Game
Fix TestGame class to match the View update to Game

  from expects import *
  
+ from example_view import ExampleView
  from pygametemplate import Game
  
  import datetime
  
  
  class TestGame(Game):
      """An altered Game class for testing purposes."""
-     def __init__(self, resolution):
+     def __init__(self, StartingView, resolution):
-         super(TestGame, self).__init__(resolution)
+         super(TestGame, self).__init__(StartingView, resolution)
  
      def log(self, *error_message):
          """Altered log function which just raises errors."""
          raise
  
  
- game = TestGame((1280, 720))
+ game = TestGame(ExampleView, (1280, 720))
  
Fix TestGame class to match the View update to Game
## Code Before:
from expects import *

from pygametemplate import Game

import datetime


class TestGame(Game):
    """An altered Game class for testing purposes."""
    def __init__(self, resolution):
        super(TestGame, self).__init__(resolution)

    def log(self, *error_message):
        """Altered log function which just raises errors."""
        raise


game = TestGame((1280, 720))

## Instruction:
Fix TestGame class to match the View update to Game
## Code After:
from expects import *

from example_view import ExampleView
from pygametemplate import Game

import datetime


class TestGame(Game):
    """An altered Game class for testing purposes."""
    def __init__(self, StartingView, resolution):
        super(TestGame, self).__init__(StartingView, resolution)

    def log(self, *error_message):
        """Altered log function which just raises errors."""
        raise


game = TestGame(ExampleView, (1280, 720))
