示例#1
0
 def test_that_responses_have_proper_status_codes(self):
     self.assertEqual(response_for(400, '_').status_code, 400)
示例#2
0
 def test_that_it_creates_error_for_the_appropriate_codes(self):
     self.assertTrue(issubclass(response_for(400, '_'), Error))
     self.assertFalse(issubclass(response_for(399, '_'), Error))