Skip to content

Commit

Permalink
Some improvements to allow easier mocking. Added a few tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdChasm committed Feb 26, 2014
1 parent 0f18cc2 commit 2c74296
Show file tree
Hide file tree
Showing 7 changed files with 564 additions and 465 deletions.
3 changes: 3 additions & 0 deletions src/spyd/game/room/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ def is_teammode(self):
def mode_name(self):
return self._map_mode_state.mode_name

def get_map_names(self):
return self._map_mode_state.get_map_names()

def is_name_duplicate(self, name):
return self._players.is_name_duplicate(name)

Expand Down
2 changes: 1 addition & 1 deletion src/spyd/protocol/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import server_write_helper as swh
from server_write_helper import swh

0 comments on commit 2c74296

Please sign in to comment.