def test_load_attr_as_on_none(self): info = Info({'test': None}, preserve_data=True) info._load_attr_as('test', Info) self.assertEqual(info.test, None)
def test_load_attr_as_on_none(self): info = Info({'test': None}, preserve_data=True) info._load_attr_as('test', Info) self.assertEqual(info.test, None)
def test_load_attr_as(self): info = Info({'subinfo': {'test': True}}, preserve_data=True) info._load_attr_as('subinfo', Info, preserve_data=True) info.subinfo._load_attr('test') self.assertEqual(info.subinfo.test, True)
def test_load_attr_as(self): info = Info({'subinfo': {'test':True}}, preserve_data=True) info._load_attr_as('subinfo', Info, preserve_data=True) info.subinfo._load_attr('test') self.assertEqual(info.subinfo.test, True)