'Test that sending foo:* works'

def test_signalProcess_withgroup(self):

    options = DummyOptions()
    pconfig1 = DummyPConfig(options, 'process1', '/bin/foo')
    pconfig2 = DummyPConfig(options, 'process2', '/bin/foo2')
    from supervisor.process import ProcessStates
    supervisord = PopulatedDummySupervisor(options, 'foo', pconfig1, pconfig2)
    supervisord.set_procattr('process1', 'state', ProcessStates.RUNNING)
    supervisord.set_procattr('process2', 'state', ProcessStates.RUNNING)
    interface = self._makeOne(supervisord)
    result = interface.signalProcess('foo:*', 10)
    self.assertEqual(interface.update_text, 'signalProcessGroup')
    result = sorted(result, key=operator.itemgetter('name'))
    from supervisor.xmlrpc import Faults
    self.assertEqual(result, [{'status': Faults.SUCCESS, 'group': 'foo', 'name': 'process1', 'description': 'OK'}, {'status': Faults.SUCCESS, 'group': 'foo', 'name': 'process2', 'description': 'OK'}])
    process1 = supervisord.process_groups['foo'].processes['process1']
    self.assertEqual(process1.sent_signal, 10)
    process2 = supervisord.process_groups['foo'].processes['process2']
    self.assertEqual(process2.sent_signal, 10)
