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))
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))
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)
def test_getCacheStorageRootPath_Mac(self): cache_root_path = Resources._getCacheStorageRootPath() self.assertIsNone("expected None, got %s" % cache_root_path)
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))