

def test_decode_with_json_values(self):
    encoded_values = dedent('\n            * Dictionary Field (dictionary_field):\n                {\n                    "name": "Adam Coddington"\n                }\n            * Integer Field (integer_field):\n                10\n            * String Field (string_field):\n                Hello\n            * List Field (list_field):\n                [\n                    "Alphabet",\n                    {\n                        "One": "Two"\n                    }\n                ]\n        ')
    expected_result = {
        'dictionary_field': {
            'name': 'Adam Coddington',
        },
        'integer_field': 10,
        'string_field': 'Hello',
        'list_field': ['Alphabet', {
            'One': 'Two',
        }],
    }
    actual_result = JiraFieldManager(encoded_values)
    self.assertEqual(expected_result, actual_result)

dataset/ETHPy150Open coddingtonbear/jirafs/tests/test_jirafieldmanager.py TestJiraFieldManager.test_decode_with_json_values/original