Exemplo n.º 1
0
    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())
Exemplo n.º 2
0
    def test_supports_cookie_default_as_none(self):
        mock = self.MockLazyResult('hello world')
        response = Response('mock', mock)

        self.assertIsNone(response.cookie())
Exemplo n.º 3
0
    def test_supports_cookie(self):
        mock = self.MockLazyResult('hello world')
        response = Response('mock', mock, cookie='Chocolate Chip')

        self.assertEqual('Chocolate Chip', response.cookie())