'Test whether a tracking warning alert is processed correctly'

def test_tracker_warning_alert(self):

    url = 'http://google.com'
    mock_alert = MockObject()
    mock_alert.category = (lambda : lt.alert.category_t.error_notification)
    mock_alert.url = url
    mock_alert.message = (lambda : 'test')
    self.libtorrent_download_impl.process_alert(mock_alert, 'tracker_warning_alert')
    self.assertEqual(self.libtorrent_download_impl.tracker_status[url][1], 'Warning:    test')
