'Returns a bool indicating whether the this Layer supports the given
capability (a string).  Valid capability strings include:
\'RandomRead\', \'SequentialWrite\', \'RandomWrite\', \'FastSpatialFilter\',
\'FastFeatureCount\', \'FastGetExtent\', \'CreateField\', \'Transactions\',
\'DeleteFeature\', and \'FastSetNextByIndex\'.'

def test_capability(self, capability):

    return bool(capi.test_capability(self.ptr, capability))
