

def test_factory_creates_properties(self):
    model = {
        'shape': 'TestShape',
        'load': {
            'request': {
                'operation': 'DescribeTest',
            },
        },
    }
    shape = DenormalizedStructureBuilder().with_members({
        'ETag': {
            'type': 'string',
        },
        'LastModified': {
            'type': 'string',
        },
    }).build_model()
    service_model = mock.Mock()
    service_model.shape_for.return_value = shape
    TestResource = self.load('test', model, service_model=service_model)
    self.assertTrue(hasattr(TestResource, 'e_tag'), 'ETag shape member not available on resource')
    self.assertTrue(hasattr(self, 'last_modified'), 'LastModified shape member not available on resource')

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_factory.py TestResourceFactory.test_factory_creates_properties/VarMisuse@132/206 `TestResource`->`self`