mozhg.tests package¶
Submodules¶
mozhg.tests.auth module¶
Dummy Mercurial extension to facilitate testing of mozhg.auth.getbugzillaauth().
-
mozhg.tests.auth.
HGEXT_BOOTSTRAP
()¶
-
mozhg.tests.auth.
bzauth
(ui, require=False, fakegetpass=None, ffprofile=None)¶
-
mozhg.tests.auth.
configitem
(*args, **kwargs)¶
mozhg.tests.test_auth module¶
-
class
mozhg.tests.test_auth.
TestAuth
(methodName='runTest')¶ Bases:
unittest.case.TestCase
-
p
(*parts)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
tearDown
()¶ Hook method for deconstructing the test fixture after testing it.
-
test_container
()¶
Ensure empty cookies.db behaves properly.
Ensure we react sanely when no cookies.sqlite file is present.
-
test_find_profiles_path
()¶
If we have multiple cookies for a domain, one with correct path is used.
If we request a cookie from another host, we shouldn’t get a cookie.
-
test_get_profiles_empty
()¶ If we point at a directory without a profiles.ini, we get nothing.
-
test_get_profiles_single
()¶ A profiles.ini with a single profile works as expected.
-
test_multiple_profiles_age_ordering
()¶ Profile with newest file content comes first.
-
test_multiple_profiles_default_first
()¶ Test that the default profile always comes first.
-
Create a cookies SQLite database as used by Firefox profiles.
Create a Bugzilla login cookie.