In unit testing, you use mocks to simulate the behavior of other code parts in controlled ways. mock is a Python library for testing that allows you to replace parts of the system under test with mock objects and make assertions about how they have been used. mock has been integrated the Python standard library since version 3.3 under the name unittest.mock.
Software Testing Resources: Load Testing, Unit Testing, Functional Testing
This 50 pages report from the Software Engineering Institute on unit testing and analysis examines the techniques, assessment and management of unit analysis and testing.
This chapter from the “Hitchhiker’s Guide to Python” provides recommendations on how to perform unit tests in Python and presents the unitest and doctest modules. It also lists the tools that are available to perform unit testing in Python.
Karen Nicole Johnson has produced a nice word document that list all software testing mnemonics. You will find in more than 10 pages useful software testing heuristics like SACKED SCOWS or SLIME. For every mnemonic, there is a link to the article or blog post that explains it.
Andrew Hunt and David Thomas have produced a nice Unit Testing Cheat Sheet (PDF document) based on the unit testing principles introduced in their book Pragmatic Unit Testing in Java. This document contains the Right-BICEP hint to determine what to test, the A-TRIP acronym that help remembering the properties of good tests and the CORRECT approach to assess boundary conditions in software testing.
Udacity software testing course (cs258) aims to teach how to think like a software tester, how to find bugs in code earlier and write better code. The course is presented by John Regehr, computer science professor at the University of Utah, and Sean Bennett.