def test_invalid(self):
     invalid_names = (
         "space inside",
         "a!b",
         "$",
     )
     for name in invalid_names:
         with self.assertRaises(ValidationError):
             validate_cookie_name("no spaces")
 def test_invalid(self):
     invalid_names = (
         "space inside",
         "a!b",
         "$",
     )
     for name in invalid_names:
         with self.assertRaises(ValidationError):
             validate_cookie_name("no spaces")
 def test_valid(self):
     validate_cookie_name("_foo-bar")
 def test_valid(self):
     validate_cookie_name("_foo-bar")