'Should set signal handler for each item in map.'

def test_sets_signal_handler_for_each_item(self):

    signal_handler_map = self.signal_handler_map
    expect_mock_output = ''.join((('Called    signal.signal(%(signal_number)r,    %(handler)r)\n' % vars()) for (signal_number, handler) in signal_handler_map.items()))
    daemon.daemon.set_signal_handlers(signal_handler_map)
    self.failUnlessMockCheckerMatch(expect_mock_output)
