def METHOD_NAME(self, name, ss, expected):
    filter = SourceStampFilter(project_eq='p', codebase_eq='c', repository_eq='r',
                               branch_eq='b')
    self.assertEqual(filter.is_matched(ss), expected)
    filter = SourceStampFilter(project_re='^p$', codebase_re='^c$', repository_re='^r$',
                               branch_re='^b$')
    self.assertEqual(filter.is_matched(ss), expected)
    filter = SourceStampFilter(project_re=re.compile('^p$'),
                               codebase_re=re.compile('^c$'),
                               repository_re=re.compile('^r$'),
                               branch_re=re.compile('^b$'))
    self.assertEqual(filter.is_matched(ss), expected)