Beispiel #1
0
    def test_getCacheStorageRootPath_Windows(self):
        if platform.system() != "Windows":
            self.skipTest("not on Windows")

        cache_root_path = Resources._getCacheStorageRootPath()
        expected_cache_root_path = os.getenv("LOCALAPPDATA")
        self.assertEqual(expected_cache_root_path, cache_root_path,
                         "expected %s, got %s" % (expected_cache_root_path, cache_root_path))
Beispiel #2
0
    def test_getCacheStorageRootPath_Linux(self):
        if platform.system() != "Linux":
            self.skipTest("not on Linux")

        cache_root_path = Resources._getCacheStorageRootPath()
        expected_cache_root_path = os.path.expanduser("~/.cache")
        self.assertEqual(expected_cache_root_path, cache_root_path,
                         "expected %s, got %s" % (expected_cache_root_path, cache_root_path))
Beispiel #3
0
    def test_getCacheStorageRootPath_Mac(self):
        if platform.system() != "Darwin":
            self.skipTest("not on mac")

        cache_root_path = Resources._getCacheStorageRootPath()
        self.assertIsNone("expected None, got %s" % cache_root_path)
Beispiel #4
0
 def test_getCacheStorageRootPath_Mac(self):
     cache_root_path = Resources._getCacheStorageRootPath()
     self.assertIsNone("expected None, got %s" % cache_root_path)
Beispiel #5
0
 def test_getCacheStorageRootPath_Linux(self):
     cache_root_path = Resources._getCacheStorageRootPath()
     expected_cache_root_path = os.path.expanduser("~/.cache")
     self.assertEqual(
         expected_cache_root_path, cache_root_path, "expected %s, got %s" %
         (expected_cache_root_path, cache_root_path))
Beispiel #6
0
    def test_getCacheStorageRootPath_Mac(self):
        if platform.system() != "Darwin":
            self.skipTest("not on mac")

        cache_root_path = Resources._getCacheStorageRootPath()
        self.assertIsNone("expected None, got %s" % cache_root_path)