def test_upgrade_without_remote_version(self, dialog_mock):
     version.upgrade()
     self.assertFalse(dialog_mock.called)
 def test_upgrade_outdated_version(self, dialog_mock):
     version.upgrade()
     self.assertTrue(dialog_mock.called)
 def test_upgrade_without_local_version(self, dialog_mock):
     version.upgrade()
     self.assertTrue(dialog_mock.called)
 def test_upgrade_same_version(self, dialog_mock):
     version.upgrade()
     self.assertFalse(dialog_mock.called)