From d1e5516c06f9ee64859c1dd9888778f62fdd2bc2 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 10 May 2017 22:38:46 +0200 Subject: [PATCH] Complemented message storage test with explicit None extra_tags value --- tests/messages_tests/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/messages_tests/base.py b/tests/messages_tests/base.py index 6cd0e11083..b80fe6c639 100644 --- a/tests/messages_tests/base.py +++ b/tests/messages_tests/base.py @@ -349,8 +349,9 @@ class BaseTests: storage = self.get_storage() storage.level = 0 add_level_messages(storage) + storage.add(constants.INFO, 'A generic info message', extra_tags=None) tags = [msg.tags for msg in storage] - self.assertEqual(tags, ['info', '', 'extra-tag debug', 'warning', 'error', 'success']) + self.assertEqual(tags, ['info', '', 'extra-tag debug', 'warning', 'error', 'success', 'info']) def test_level_tag(self): storage = self.get_storage()