'Ensure the default number of workers matches num cpus.'

def test_number_of_workers(self):

    def pid():
        i = 1
        while True:
            i = (i + 1)
            (yield i)
    with mock.patch.object(os, 'fork') as mock_fork:
        mock_fork.side_effect = pid
        server = wsgi.Server()
        server.configure = mock.Mock()
        fake_application = 'fake-application'
        server.start(fake_application, None)
        self.assertEqual(processutils.get_worker_count(), len(server.children))
