tests/app/soc/views/helper/test_access.py
changeset 2267 4c017cd9733c
parent 2266 4e2d1334a362
child 2268 60f56f8fb290
equal deleted inserted replaced
2266:4e2d1334a362 2267:4c017cd9733c
    30   def setUp(self):
    30   def setUp(self):
    31     self.test_context = {'TEST_KEY': 'TEST_VALUE'}
    31     self.test_context = {'TEST_KEY': 'TEST_VALUE'}
    32     self.rights = access.Checker(None)
    32     self.rights = access.Checker(None)
    33 
    33 
    34   def testAllow(self):
    34   def testAllow(self):
    35     assert False
       
    36     try:
    35     try:
    37       self.rights.allow(self.test_context)
    36       self.rights.allow(self.test_context)
    38     except out_of_band.Error:
    37     except out_of_band.Error:
    39       self.fail("allow should not raise on any request")
    38       self.fail("allow should not raise on any request")
    40 
    39