Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test runs only with pattern: os == 'linux'
- Manifest: toolkit/xre/test/marionette/manifest.toml includes toolkit/xre/test/marionette/xdg_config/manifest.toml
import os
import sys
sys.path.append(os.path.dirname(__file__))
from xdg_config_home_test_case import XdgConfigHomeTestCase
class TestXdgConfigHomeNewEnvInvalid(XdgConfigHomeTestCase):
def setUp(self):
assert "XDG_CONFIG_HOME" not in self._env.keys()
self._env.update({"XDG_CONFIG_HOME": "$HOME/mozXDG-config-dir"})
super().setUp()
def test_profile_dir(self):
self.client.navigate(self.about_support)
profile_subdir = self.get_asserted_profile_subdir()
self.assertTrue(
profile_subdir.startswith(".config/mozilla/firefox"),
"Profile is under '.config/mozilla/firefox'",
)