tests/app/soc/views/model/test_base.py
changeset 2915 76b5ef0fb5c6
parent 1691 c1d5a67e9e33
equal deleted inserted replaced
2914:4f821debda33 2915:76b5ef0fb5c6
    93   def testErrorOnNonExistantEntity(self):
    93   def testErrorOnNonExistantEntity(self):
    94     """
    94     """
    95     """
    95     """
    96 
    96 
    97     request = MockRequest("/test/public")
    97     request = MockRequest("/test/public")
       
    98     request.start()
    98     access_type = "show"
    99     access_type = "show"
    99     page_name = "Show Test"
   100     page_name = "Show Test"
   100     django_args = {'link_id': 'foo', 'scope_path': 'bar'}
   101     django_args = {'link_id': 'foo', 'scope_path': 'bar'}
   101     actual = self.view.public(request, access_type, page_name=page_name, **django_args)
   102     actual = self.view.public(request, access_type, page_name=page_name, **django_args)
       
   103     request.end()
   102     self.assertTrue('error' in actual)
   104     self.assertTrue('error' in actual)