def job(self): job = model.Job('job') job.skip_if_matcher = cm.MatchAll([ cm.ProjectMatcher('^project$'), cm.MatchAllFiles([cm.FileMatcher('^docs/.*$')]), ]) return job
def setUp(self): super(TestMatchAllFiles, self).setUp() self.matcher = cm.MatchAllFiles([cm.FileMatcher('^docs/.*$')])
def test_str(self): matcher = cm.MatchAll([cm.FileMatcher('foo')]) self.assertEqual(str(matcher), '{MatchAll:{FileMatcher:foo}}')
def setUp(self): super(TestFileMatcher, self).setUp() self.matcher = cm.FileMatcher('filename')