def test_needAuthForm_auth(self): z = Authz(stopBuild = 'auth') assert z.needAuthForm('stopBuild')
def test_needAuthForm_callable(self): z = Authz(stopAllBuilds = lambda u : False) assert z.needAuthForm('stopAllBuilds')
def test_needAuthForm_False(self): z = Authz(forceBuild = False) assert not z.needAuthForm('forceBuild')
def test_needAuthForm_True(self): z = Authz(forceAllBuilds = True) assert not z.needAuthForm('forceAllBuilds')
def test_needAuthForm_callable(self): z = Authz(stopAllBuilds = lambda u : False) assert z.needAuthForm('stopAllBuilds')
def test_needAuthForm_auth(self): z = Authz(stopBuild = 'auth') assert z.needAuthForm('stopBuild')
def test_needAuthForm_True(self): z = Authz(forceAllBuilds = True) assert not z.needAuthForm('forceAllBuilds')
def test_needAuthForm_False(self): z = Authz(forceBuild = False) assert not z.needAuthForm('forceBuild')
def test_needAuthForm_auth(self): z = Authz(stopBuild="auth") assert z.needAuthForm("stopBuild")