def test_is_graphite_glob(self): is_glob = ["a*", "a.b*", "a.b?", "a.b[a-z]?", "a{b,c,d}.a", "a.*.a", "{a}"] for x in is_glob: self.assertTrue(bg_glob._is_graphite_glob(x)) not_glob = ["a.a", "a-z"] for x in not_glob: self.assertFalse(bg_glob._is_graphite_glob(x))
def test_is_graphite_glob(self): is_glob = [ "a*", "a.b*", "a.b?", "a.b[a-z]?", "a{b,c,d}.a", "a.*.a", "{a}" ] for x in is_glob: self.assertTrue(bg_glob._is_graphite_glob(x)) not_glob = ["a.a", "a-z"] for x in not_glob: self.assertFalse(bg_glob._is_graphite_glob(x))