'Test cases copied from Python\'s Lib/test/test_http_cookies.py'

def test_python_cookies(self):

    self.assertEqual(parse_cookie('chips=ahoy;    vienna=finger'), {'chips': 'ahoy', 'vienna': 'finger'})
    self.assertEqual(parse_cookie('keebler="E=mc2;    L=\\"Loves\\";    fudge=\\012;"'), {'keebler': '"E=mc2', 'L': '\\"Loves\\"', 'fudge': '\\012', '': '"'})
    self.assertEqual(parse_cookie('keebler=E=mc2'), {'keebler': 'E=mc2'})
    self.assertEqual(parse_cookie('key:term=value:term'), {'key:term': 'value:term'})
    self.assertEqual(parse_cookie('a=b;    c=[;    d=r;    f=h'), {'a': 'b', 'c': '[', 'd': 'r', 'f': 'h'})
