Задать вопрос

Тел: +7 965 3737 888

432

Просмотров

1

Ответов

TestCase helpers

I use these helper methods in my unit tests. They turn many simple getting-and-posting tests into one-liners. Definitely a work in progress, and I can't be the only person who has done this sort of thing -- comments are more than welcome.

Вопрос полезен? Да0/Нет0
file_3546.py(1.8Кб)
None

Ответы (1):

Ответeopadoan:04.06.2007
Ответ полезен? Да0/Нет0

You can even add some shortcut methods like assertCanBeFound(url), assertTemporaryMoved(url), assertPermanentlyMoved(url), assertOKResponse(url), etc...