Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''some assertion example'''
- a_nested_dict = {
- 'element1': [
- {'key1', 'value1'}
- {'key2', 'value2'}
- ],
- 'element2': [
- {'key3', 'value3'}
- ]
- }
- new_dictionary = {} #similar to a_nested_dict
- assertDictEqual(a_nested_dict, new_dictionary)
- a_nested_list = [
- {
- 'key1': [1,2,3],
- 'key2': ['a','b'],
- },
- {
- 'key1': [4,5,6],
- 'key2': ['c','d'],
- },
- ]
- new_list = [] #similar to a_nested_list
- assertListEqual(a_nested_list, new_list)
Add Comment
Please, Sign In to add comment