-
Notifications
You must be signed in to change notification settings - Fork 26
Купоросов Василий, Орлова Александра, HTTP прокси-сервер #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| def interrupt(self): | ||
| with self.__interrupted_mutex: | ||
| socket(AF_INET, SOCK_STREAM).connect((self.__address, self.__port)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Интересный, но всё же подхак :)
|
|
||
| class Test(TestCase): | ||
|
|
||
| def test_create_message(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В идеале, конечно, стоило взять штатный HTTP-клиент, например, Requests, и с помощью него попробовать делать запросы. Чтобы протестировать кэширование, лучше всего выставлять какой-нибудь заголовок при проксировании (обычно используют X-Cache: HIT и X-Cache: MISS) и проверять его наличие в ответе.
Те тесты, которые есть сейчас, вполне себе нормальные. Но это тестирование белого ящика, а есть ещё тестирование черного ящика.
No description provided.