'Test the initialization of the tracker manager'

@blocking_call_on_reactor_thread
def test_initialize(self):

    self.tracker_manager.add_tracker('http://test1.com:80/announce')
    self.tracker_manager.add_tracker('http://test2.com:80/announce')
    self.tracker_manager.initialize()
    self.assertEqual(len(self.tracker_manager._tracker_dict.keys()), 4)
    self.assertTrue(('http://test1.com/announce' in self.tracker_manager._tracker_dict))
    self.assertTrue(('http://test2.com/announce' in self.tracker_manager._tracker_dict))
