aboutsummaryrefslogtreecommitdiff
path: root/diplomacy/tests
diff options
context:
space:
mode:
authornotoraptor <stevenbocco@gmail.com>2018-10-25 11:20:56 -0400
committernotoraptor <stevenbocco@gmail.com>2019-04-18 11:17:43 -0400
commitb609e150b811700f3a429f0dd653b96f1be511d9 (patch)
treea4bde13c445aa697a0d6d9ffa8a68ddb24d88f5a /diplomacy/tests
parentbd854ba28d37d426a1822e97baf8dc8f8b44b993 (diff)
Map - Modified norm() and compact()
- Added 'loc' arg to get_order_status - Raising exception on set_orders for invalid power - Deprecated game.distribute_orders
Diffstat (limited to 'diplomacy/tests')
-rw-r--r--diplomacy/tests/test_map.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/diplomacy/tests/test_map.py b/diplomacy/tests/test_map.py
index 507efae..6a12f71 100644
--- a/diplomacy/tests/test_map.py
+++ b/diplomacy/tests/test_map.py
@@ -55,8 +55,9 @@ def test_drop():
def test_compact():
""" Tests map.compact """
this_map = deepcopy(Map())
+ # Power name at top of string is removed by Map.compact().
assert this_map.compact('England: Fleet Western Mediterranean -> Tyrrhenian Sea. (*bounce*)') \
- == ['ENGLAND', 'F', 'WES', 'TYS', '|']
+ == ['F', 'WES', 'TYS', '|']
def test_norm_power():
""" Tests map.norm_power """