def test_network_topic(self):
     topic = PersonalizedStream.create_or_update_topic(self.network, '1', 'UN')
     t = PersonalizedStream.get_topic(self.network, 1)
     self.assertTrue(t)
     self.assertEqual(t.label, topic.label)
     
     self.assertTrue(PersonalizedStream.delete_topic(self.network, topic))
 def test_site_topic(self):
     topic = PersonalizedStream.create_or_update_topic(self.site, '2', 'DEUX')
     
     t = PersonalizedStream.get_topic(self.site, 2)
     self.assertTrue(t)
     self.assertEqual(t.label, topic.label)
     
     self.assertTrue(PersonalizedStream.delete_topic(self.site, topic))