'Create a mock of a partition object and return it.'

def get_partition_mock(self, devname):

    class mock(object, ):
        device = devname
        get_mountpoint = self.god.create_mock_function('get_mountpoint')
    return mock
