def convert_pattern(self, input_str: str) -> str: return convert2fuzzy_pattern(input_str)
def convert_pattern(self, input_str): p = convert2fuzzy_pattern(input_str) # self.debug("pattern: %s : %s" % (input_str, p)) return p
def test_convert2fuzzy_pattern(): assert util.convert2fuzzy_pattern('abc') == 'a[^a]*b[^b]*c' assert util.convert2fuzzy_pattern('a/c') == 'a[^a]*/[^/]*c'
def convert_pattern(self, input_str): return convert2fuzzy_pattern(input_str)
def test_convert2fuzzy_pattern(): assert util.convert2fuzzy_pattern('abc') == 'a.{-}b.{-}c' assert util.convert2fuzzy_pattern('a/c') == 'a.{-}/[^/]*c'
def test_convert2fuzzy_pattern(self): eq_(convert2fuzzy_pattern('abc'), 'a[^a]*b[^b]*c') eq_(convert2fuzzy_pattern('a/c'), 'a[^a]*/[^/]*c')
def test_convert2fuzzy_pattern(self): eq_(convert2fuzzy_pattern('abc'), 'a[^a]*b[^b]*c[^c]*')
def test_convert2fuzzy_pattern(): assert util.convert2fuzzy_pattern('abc') == 'a[^a \t]{-}b[^b \t]{-}c' assert util.convert2fuzzy_pattern('a/c') == 'a[^a \t]{-}/[^/]*c'