def test_extract_header_missing(self): pusher = Pusher() resp = self._create_mocked_response() self.assertEqual(pusher._extractHeader(resp, 'foo'), '')
def test_extract_header_defined(self): pusher = Pusher() resp = self._create_mocked_response() self.assertEqual(pusher._extractHeader(resp, 'X-NotificationStatus'), 'Received')