Test only comment section conversion

This commit is contained in:
Bo Maryniuk 2017-11-22 18:30:39 +01:00
parent ac63d35703
commit d9b4ac2d6d

View File

@ -530,6 +530,10 @@ class StateReturnsTestCase(TestCase):
expected = {'comment': 'data\nin\nthe\nlist', 'changes': {}, 'name': None, 'result': True}
assert statedecorators.state_output_unificator(lambda: data)() == expected
data = {'comment': ['data', 'in', 'the', 'list'], 'changes': {}, 'name': None, 'result': None}
expected = 'data\nin\nthe\nlist'
assert statedecorators.state_output_unificator(lambda: data)()['comment'] == expected
class StateFormatSlotsTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
'''