コード例 #1
0
 def test_needAuthForm_auth(self):
     z = Authz(stopBuild = 'auth')
     assert z.needAuthForm('stopBuild')
コード例 #2
0
 def test_needAuthForm_callable(self):
     z = Authz(stopAllBuilds = lambda u : False)
     assert z.needAuthForm('stopAllBuilds')
コード例 #3
0
 def test_needAuthForm_False(self):
     z = Authz(forceBuild = False)
     assert not z.needAuthForm('forceBuild')
コード例 #4
0
 def test_needAuthForm_True(self):
     z = Authz(forceAllBuilds = True)
     assert not z.needAuthForm('forceAllBuilds')
コード例 #5
0
 def test_needAuthForm_callable(self):
     z = Authz(stopAllBuilds = lambda u : False)
     assert z.needAuthForm('stopAllBuilds')
コード例 #6
0
 def test_needAuthForm_auth(self):
     z = Authz(stopBuild = 'auth')
     assert z.needAuthForm('stopBuild')
コード例 #7
0
 def test_needAuthForm_True(self):
     z = Authz(forceAllBuilds = True)
     assert not z.needAuthForm('forceAllBuilds')
コード例 #8
0
 def test_needAuthForm_False(self):
     z = Authz(forceBuild = False)
     assert not z.needAuthForm('forceBuild')
コード例 #9
0
 def test_needAuthForm_auth(self):
     z = Authz(stopBuild="auth")
     assert z.needAuthForm("stopBuild")