def test_data_object_dict_val_attr_fail_not_dict_prop(self):
     '''Validate failure if non-dict passed as data_dict on creation'''
     try:
         obj = DataObjectDict("not_dict", data_dict=dict())
         obj.data_dict = list()
         self.fail("Unexpected success setting data_dict to a list")
     except ValueError:
         pass
 def test_data_object_dict_val_attr_set_dict_prop(self):
     '''Validate correct setting of data_dict property on creation'''
     obj = DataObjectDict("not_dict", data_dict=dict())
     obj.data_dict = {'key1': 'value1', 'key2': 'value2'}
     self.assertEqual(obj.data_dict['key1'], 'value1')
     self.assertEqual(obj.data_dict['key2'], 'value2')