'Test membership query.'

def test_contains(self):

    regex_set = RegexSet.from_namespaces(['db.bar', 'db_*.foo', 'db2.*'])
    self.assertTrue(('db.bar' in regex_set))
    self.assertTrue(('db_1.foo' in regex_set))
    self.assertTrue(('db2.bar' in regex_set))
    self.assertTrue(('db2.bar2' in regex_set))
    self.assertFalse(('not.found' in regex_set))
    self.assertFalse(('db_not.found' in regex_set))
