예제 #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)
예제 #2
0
파일: test_client.py 프로젝트: xbx/zato
    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)