Enable direct testing with nosetests

This is the minimal backport of
https://review.openstack.org/#/c/21685/
which makes it possible to run the functional
tests without also invoking run_tests.sh. The
extra call to monkey_patch is not causing any
harm when used via run_tests.sh

Change-Id: If0d2cb94f956380a2c35414b6e8df6db76a669c6
Merge "Enable direct testing with nosetests" into stable/folsom