Complemented message storage test with explicit None extra_tags value

This commit is contained in:
Claude Paroz 2017-05-10 22:38:46 +02:00
parent d611a89238
commit d1e5516c06
1 changed files with 2 additions and 1 deletions

View File

@ -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()