Looking better; one further comment - Mocks don't have an "assert_called()" method; this works because its a mock but actually fails to check anything - use :
self.assertTrue(self.<function>.called).
I see a few instances of this throughout the tests.
Looking better; one further comment - Mocks don't have an "assert_called()" method; this works because its a mock but actually fails to check anything - use :
self. assertTrue( self.<function> .called) .
I see a few instances of this throughout the tests.