summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repoze/bfg/tests/test_view.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_view.py b/repoze/bfg/tests/test_view.py
index ca1037a67..9bdc7d80a 100644
--- a/repoze/bfg/tests/test_view.py
+++ b/repoze/bfg/tests/test_view.py
@@ -360,6 +360,16 @@ class TestIsResponse(unittest.TestCase):
response = None
self.assertEqual(self._callFUT(response), False)
+ def test_partial_inst(self):
+ response = DummyResponse()
+ response.app_iter = None
+ self.assertEqual(self._callFUT(response), False)
+
+ def test_status_not_string(self):
+ response = DummyResponse()
+ response.status = None
+ self.assertEqual(self._callFUT(response), False)
+
class TestViewExecutionPermitted(unittest.TestCase):
def setUp(self):
cleanUp()