Complemented message storage test with explicit None extra_tags value
This commit is contained in:
parent
d611a89238
commit
d1e5516c06
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue