|
4 | 4 | from pygambit.catalog import CatalogGame, PrisonersDilemma |
5 | 5 |
|
6 | 6 |
|
7 | | -class TestGame(CatalogGame): |
| 7 | +class ExampleGame(CatalogGame): |
8 | 8 | """ |
9 | 9 | Test game description. |
10 | 10 | """ |
@@ -32,18 +32,18 @@ def test_catalog_game_not_instantiable(self): |
32 | 32 |
|
33 | 33 | def test_custom_game_subclass_extracts_metadata(self): |
34 | 34 | """Custom CatalogGame subclasses should extract metadata from _game().""" |
35 | | - assert TestGame.num_players == 2 |
36 | | - assert TestGame.game_type == "efg" |
37 | | - assert TestGame.title == "Test game F" |
38 | | - assert TestGame.description == "Test game description." |
| 35 | + assert ExampleGame.num_players == 2 |
| 36 | + assert ExampleGame.game_type == "efg" |
| 37 | + assert ExampleGame.title == "Test game F" |
| 38 | + assert ExampleGame.description == "Test game description." |
39 | 39 |
|
40 | 40 | def test_catalog_py_game_with_parameters(self): |
41 | 41 | """ |
42 | 42 | Custom CatalogGame subclass should return Game |
43 | 43 | and support parameters. |
44 | 44 | """ |
45 | | - assert isinstance(TestGame(some_param=False), Game) |
46 | | - assert isinstance(TestGame(some_param=True), Game) |
| 45 | + assert isinstance(ExampleGame(some_param=False), Game) |
| 46 | + assert isinstance(ExampleGame(some_param=True), Game) |
47 | 47 |
|
48 | 48 | def test_catalog_yml_game_instantiation(self): |
49 | 49 | """Custom CatalogGame subclasses reading from catalog.yml should return Game instances.""" |
|
0 commit comments