Some cleanups of the unittests.

This commit is contained in:
Griatch 2014-03-15 07:37:02 +01:00
parent cafbb43f7a
commit 7571e3606d
5 changed files with 8 additions and 29 deletions

View file

@ -491,7 +491,7 @@ def create_player(key, email, password,
if not email:
email = "dummy@dummy.com"
if _PlayerDB.objects.filter(username__iexact=key):
raise ValueError("A Player with this name already exists.")
raise ValueError("A Player with the name '%s' already exists." % key)
# this handles a given dbref-relocate to a player.
report_to = handle_dbref(report_to, _PlayerDB)