def test_upgarade_1_to_2__without_logger(self, reinstall_profiles, logging):
     from collective.cropimage.upgrades import upgrade_1_to_2
     upgrade_1_to_2(self.setup)
     reinstall_profiles.assert_called_with(self.setup, logging.getLogger())
 def test_upgarade_1_to_2__with_logger(self, reinstall_profiles):
     from collective.cropimage.upgrades import upgrade_1_to_2
     upgrade_1_to_2(self.setup, self.logger)
     reinstall_profiles.assert_called_with(self.setup, self.logger)