'Test whether adding a tracker works correctly'

@blocking_call_on_reactor_thread
def test_add_tracker(self):

    self.tracker_manager.add_tracker('http://test1.com')
    self.assertEqual(len(self.tracker_manager._tracker_dict), 0)
    self.tracker_manager.add_tracker('http://test1.com:80/announce')
    self.assertEqual(len(self.tracker_manager._tracker_dict), 1)
    self.tracker_manager.add_tracker('http://test1.com:80/announce')
    self.assertEqual(len(self.tracker_manager._tracker_dict), 1)
