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