示例#1
0
 def test_ProcessGroupRemovedEvent_attributes(self):
     from supervisor.events import ProcessGroupRemovedEvent
     inst = ProcessGroupRemovedEvent('myprocess')
     self.assertEqual(inst.group, 'myprocess')
示例#2
0
 def test_process_group_removed_event(self):
     from supervisor.events import ProcessGroupRemovedEvent
     event = ProcessGroupRemovedEvent('foo')
     headers, payload = self._deserialize(str(event))
     self.assertEqual(headers['groupname'], 'foo')
     self.assertEqual(payload, '')
示例#3
0
 def test_process_group_removed_event(self):
     from supervisor.events import ProcessGroupRemovedEvent
     event = ProcessGroupRemovedEvent('foo')
     headers, payload = self._deserialize(event.payload())
     self.assertEqual(headers['groupname'], 'foo')
     self.assertEqual(payload, '')