def test_CheckConfiguration(self):
    self.override(self.classTest, 'getDictionary')
pymock.expectAndReturn(self.classTest.getDictionary(), {'a': 123, 'b': 22})
self.replay()
checkValue = self.classTest.checkConfiguration()
self.verify()
How to give default return value to a method that is called during a unit test? - Python