Thanks for the tip, I fixed it so that the method which writes .po files is mocked out using os.utime().