def testDontBuild(self): f = makeImportantFunc( 'https://hg.mozilla.org/mozilla-central', 'firefox') c = Change( revlink="https://hg.mozilla.org/mozilla-central/rev/1234", files=['browser/foo', 'mobile/bar'], comments="DONTBUILD me") self.assertFalse(f(c))
def testDontBuild(self): f = makeImportantFunc('https://hg.mozilla.org/mozilla-central', 'firefox') c = Change(revlink="https://hg.mozilla.org/mozilla-central/rev/1234", files=['browser/foo', 'mobile/bar'], comments="DONTBUILD me") self.assertFalse(f(c))
def testImportantNoProduct(self): f = makeImportantFunc('https://hg.mozilla.org/mozilla-central', None) c = Change(revlink="https://hg.mozilla.org/mozilla-central/rev/1234", files=['browser/foo', 'mobile/bar']) self.assertTrue(f(c))
def testNonpollerChange(self): f = makeImportantFunc( 'https://hg.mozilla.org/mozilla-central', 'firefox') c = Change(revlink="", files=['browser/foo', 'mobile/bar']) self.assertFalse(f(c))
def testUnImportant(self): f = makeImportantFunc( 'https://hg.mozilla.org/mozilla-central', 'firefox') c = Change(revlink="https://hg.mozilla.org/mozilla-central/rev/1234", files=['b2g/foo', 'mobile/bar']) self.assertFalse(f(c))
def testNonpollerChange(self): f = makeImportantFunc('https://hg.mozilla.org/mozilla-central', 'firefox') c = Change(revlink="", files=['browser/foo', 'mobile/bar']) self.assertFalse(f(c))
def testUnImportant(self): f = makeImportantFunc('https://hg.mozilla.org/mozilla-central', 'firefox') c = Change(revlink="https://hg.mozilla.org/mozilla-central/rev/1234", files=['b2g/foo', 'mobile/bar']) self.assertFalse(f(c))