Beispiel #1
0
    def test_get_game_by_name(self):
        """ Test getting a game module object by its name """

        from veripeditus.server.util import get_game_by_name

        # Get game module object
        game = get_game_by_name("test")

        # The test key should refer to the test game module
        import veripeditus.game.test as testgame
        self.assertIs(game, testgame)
Beispiel #2
0
    def test_get_game_by_name(self):
        """ Test getting a game module object by its name """

        from veripeditus.server.util import get_game_by_name

        # Get game module object
        game = get_game_by_name("test")

        # The test key should refer to the test game module
        import veripeditus.game.test as testgame
        self.assertIs(game, testgame)
 def module(self):
     return get_game_by_name(self.package)
Beispiel #4
0
    def module(self):
        """ Attribute pointing to the real Python module loaded for the game. """

        # Determine the game module from the package name
        return get_game_by_name(self.package)