From 0bdd749dbf389e5f1232ba7a51d8bdf792b120be Mon Sep 17 00:00:00 2001 From: Changaco Date: Wed, 7 Sep 2016 19:41:31 +0200 Subject: [PATCH] failing test for AspenWeb/pando.py#429 --- tests/test_mappings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_mappings.py b/tests/test_mappings.py index 85489f08..a08b56d7 100644 --- a/tests/test_mappings.py +++ b/tests/test_mappings.py @@ -57,6 +57,12 @@ def test_mapping_all_returns_list_of_all_values(): actual = m.all('foo') assert actual == expected +def test_mapping_all_returns_empty_list_when_key_is_missing(): + m = Mapping() + expected = [] + actual = m.all('foo') + assert actual == expected + def test_mapping_ones_returns_list_of_last_values(): m = Mapping() m['foo'] = 1