diff options
Diffstat (limited to 'Lib/test/test_cookielib.py')
-rw-r--r-- | Lib/test/test_cookielib.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_cookielib.py b/Lib/test/test_cookielib.py index 87f118d..e400bfa 100644 --- a/Lib/test/test_cookielib.py +++ b/Lib/test/test_cookielib.py @@ -3,7 +3,7 @@ import re, os, time from unittest import TestCase -from test import test_support +from test import support class DateTimeTests(TestCase): @@ -234,7 +234,7 @@ class FileCookieJarTests(TestCase): def test_lwp_valueless_cookie(self): # cookies with no value should be saved and loaded consistently from cookielib import LWPCookieJar - filename = test_support.TESTFN + filename = support.TESTFN c = LWPCookieJar() interact_netscape(c, "http://www.acme.com/", 'boo') self.assertEqual(c._cookies["www.acme.com"]["/"]["boo"].value, None) @@ -250,7 +250,7 @@ class FileCookieJarTests(TestCase): def test_bad_magic(self): from cookielib import LWPCookieJar, MozillaCookieJar, LoadError # IOErrors (eg. file doesn't exist) are allowed to propagate - filename = test_support.TESTFN + filename = support.TESTFN for cookiejar_class in LWPCookieJar, MozillaCookieJar: c = cookiejar_class() try: @@ -356,7 +356,7 @@ class CookieTests(TestCase): # missing = sign in Cookie: header is regarded by Mozilla as a missing # name, and by cookielib as a missing value - filename = test_support.TESTFN + filename = support.TESTFN c = MozillaCookieJar(filename) interact_netscape(c, "http://www.acme.com/", 'eggs') interact_netscape(c, "http://www.acme.com/", '"spam"; path=/foo/') @@ -1505,7 +1505,7 @@ class LWPCookieTests(TestCase): self.assertEquals(len(c), 6) # save and restore - filename = test_support.TESTFN + filename = support.TESTFN try: c.save(filename, ignore_discard=True) @@ -1547,7 +1547,7 @@ class LWPCookieTests(TestCase): year_plus_one = time.localtime()[0] + 1 - filename = test_support.TESTFN + filename = support.TESTFN c = MozillaCookieJar(filename, policy=DefaultCookiePolicy(rfc2965=True)) @@ -1722,7 +1722,7 @@ class LWPCookieTests(TestCase): def test_main(verbose=None): - test_support.run_unittest( + support.run_unittest( DateTimeTests, HeaderTests, CookieTests, |