'Checks that we have recent enough version of libaugeas.
If augeas version is recent enough, it will support case insensitive
regexp matching'

def _check_aug_version(self):

    self.aug.set('/test/path/testing/arg', 'aRgUMeNT')
    try:
        matches = self.aug.match("/test//*[self::arg=~regexp('argument',    'i')]")
    except RuntimeError:
        self.aug.remove('/test/path')
        return False
    self.aug.remove('/test/path')
    return matches
