~santhoshkumar/network-service/melange_framework

« back to all changes in this revision

Viewing changes to tests/unit/test_wsgi.py

  • Committer: rajarammallya
  • Date: 2011-06-28 10:56:54 UTC
  • mfrom: (75.1.11 melange)
  • Revision ID: rajarammallya@gmail.com-20110628105654-3kl6bky03qubua90
Merge from Vinkesh/Deepak| Return 404 if controller action is missing

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
        self.assertEqual(response.content_type, "application/json")
127
127
        self.assertEqual(response.json, {'fort': 'knox'})
128
128
 
 
129
    def test_returns_404_if_action_not_implemented(self):
 
130
        app = TestApp(DummyApp())
 
131
 
 
132
        response = app.get("/resources/new", status='*')
 
133
 
 
134
        self.assertEqual(response.status_int, 404)
 
135
 
129
136
 
130
137
class TestFault(BaseTest):
131
138
    def test_fault_wraps_webob_exception(self):