def METHOD_NAME(self):
    if sys.platform.startswith("win") and self.app1.version.major > 14:
        # Excel >= 2013 on Win has issues with activating hidden apps correctly
        # over two instances
        with self.assertRaises(Exception):
            self.app1.activate()
    else:
        self.app2.activate()
        self.assertEqual(self.app2, xw.apps.active)
        self.app1.activate()
        self.assertEqual(self.app1, xw.apps.active)