Exemplo n.º 1
0
 def test_extract_header_missing(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'foo'), '')
Exemplo n.º 2
0
 def test_extract_header_missing(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'foo'), '')
Exemplo n.º 3
0
 def test_extract_header_defined(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'X-NotificationStatus'),
                      'Received')
Exemplo n.º 4
0
 def test_extract_header_defined(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'X-NotificationStatus'),
                      'Received')