예제 #1
0
 def test_ProcessGroupAddedEvent_attributes(self):
     from supervisor.events import ProcessGroupAddedEvent
     inst = ProcessGroupAddedEvent('myprocess')
     self.assertEqual(inst.group, 'myprocess')
예제 #2
0
 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, '')
예제 #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, '')