Пример #1
0
 def test_extract_header_missing(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'foo'), '')
Пример #2
0
 def test_extract_header_missing(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'foo'), '')
Пример #3
0
 def test_extract_header_defined(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'X-NotificationStatus'),
                      'Received')
Пример #4
0
 def test_extract_header_defined(self):
     pusher = Pusher()
     resp = self._create_mocked_response()
     self.assertEqual(pusher._extractHeader(resp, 'X-NotificationStatus'),
                      'Received')