Atthavit Wannasakwong

68%
Flag icon
When using assert methods on mocks, like assert_called_ once_with, it’s doubly important to make sure you run the test and see it fail. It’s all too easy to make a typo in your assert function name and end up calling a mock method that does nothing (mine was to write asssert_called_once_with with three essses; try it!).
Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript
Rate this book
Clear rating