'Adding a patch for an object and attribute that already have a patch
overrides the existing patch.'

def test_patchAlreadyPatched(self):

    self.monkeyPatcher.addPatch(self.testObject, 'foo', 'blah')
    self.monkeyPatcher.addPatch(self.testObject, 'foo', 'BLAH')
    self.monkeyPatcher.patch()
    self.assertEqual(self.testObject.foo, 'BLAH')
    self.monkeyPatcher.restore()
    self.assertEqual(self.testObject.foo, self.originalObject.foo)
