def test_supports_cookie_different_cookie(self): mock = self.MockLazyResult('hello world') response = Response('mock', mock, cookie='Lemon Drop') self.assertEqual('Lemon Drop', response.cookie())
def test_supports_cookie_default_as_none(self): mock = self.MockLazyResult('hello world') response = Response('mock', mock) self.assertIsNone(response.cookie())
def test_supports_cookie(self): mock = self.MockLazyResult('hello world') response = Response('mock', mock, cookie='Chocolate Chip') self.assertEqual('Chocolate Chip', response.cookie())