Add query for testools 0.9.36 setUp bug 1360252

This is due to various projects (at least
glance, cinder and neutron) doing some things
that the latest version of testtools doesn't
allow.

Change-Id: I2db48cc6e6abb2f63fa379482c2d69bdc4d5765f
Related-Bug: #1360252