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