def test_push_center_is_not_singleton(self): """ PushCenter is not a singleton """ push_center_1 = NURESTPushCenter() push_center_1.url = 'http://www.google.fr' push_center_2 = NURESTPushCenter() self.assertEquals(push_center_1.url, 'http://www.google.fr') self.assertNotEquals(push_center_1, push_center_2)
def test_start_stop_push_center(self): """ PushCenter can start and stop """ push_center = NURESTPushCenter() push_center.url = 'http://www.google.fr' push_center.start() self.assertEquals(push_center.is_running, True) push_center.stop() self.assertEquals(push_center.is_running, False)