예제 #1
0
    def test_is_not_mac_os(self):
        """
        Tests the method which let us know if the current platform is the
        MacOS one for that case that it's the Windows one.
        """

        with self.system_platform_mock as platform_patch:
            platform_patch.return_value = "Windows"

            expected = False
            actual = PlatformUtility.is_mac_os()

            self.assertEqual(expected, actual)
예제 #2
0
    def test_is_mac_os(self):
        """
        Tests the method which let us know if the current platform is the
        MacOS one.
        """

        with self.system_platform_mock as platform_patch:
            platform_patch.return_value = "Darwin"

            expected = True
            actual = PlatformUtility.is_mac_os()

            self.assertEqual(expected, actual)