TestDictObject

class tests.test_collections.TestDictObject(methodName='runTest')[source]
__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

test_convert_from_dict()

Test converting a dict into a DictObject

test_convert_to_dict()

Test converting a DictObject into a dict

test_json_dumps()

Test serializing a simple DictObject into JSON

test_json_dumps_nested()

Test serializing a DictObject with a nested DictObject into JSON

test_set_attr()

Test setting a dictionary key via an attribute x.y = 123

test_set_item()

Test setting a dictionary key via an item/key x['y'] = 123

Attributes

Attributes