def test_ProcessGroupAddedEvent_attributes(self):
     from supervisor.events import ProcessGroupAddedEvent
     inst = ProcessGroupAddedEvent('myprocess')
     self.assertEqual(inst.group, 'myprocess')
 def test_process_group_added_event(self):
     from supervisor.events import ProcessGroupAddedEvent
     event = ProcessGroupAddedEvent('foo')
     headers, payload = self._deserialize(str(event))
     self.assertEqual(headers['groupname'], 'foo')
     self.assertEqual(payload, '')
Exemple #3
0
 def test_process_group_added_event(self):
     from supervisor.events import ProcessGroupAddedEvent
     event = ProcessGroupAddedEvent('foo')
     headers, payload = self._deserialize(event.payload())
     self.assertEqual(headers['groupname'], 'foo')
     self.assertEqual(payload, '')