Example #1
0
 def test_not_implemented_error(self):
     inner = FakeInnerResponse({}, rand_int(), rand_string(), rand_int())
     response_data = (inner, rand_bool(), rand_int(), rand_int(), None)
     
     self.assertRaises(NotImplementedError, _Response, *response_data)
     self.assertRaises(NotImplementedError, _StructuredResponse(*response_data).load_func)
     self.assertRaises(NotImplementedError, _StructuredResponse(*response_data).set_has_data)
Example #2
0
    def test_not_implemented_error(self):
        inner = FakeInnerResponse({}, rand_int(), rand_string(), rand_int())
        response_data = (inner, rand_bool(), rand_int(), rand_int(), None)

        self.assertRaises(NotImplementedError, _Response, *response_data)
        self.assertRaises(NotImplementedError,
                          _StructuredResponse(*response_data).load_func)
        self.assertRaises(NotImplementedError,
                          _StructuredResponse(*response_data).set_has_data)