Change assertTrue(isinstance()) by optimal assert
Change assertTrue(isinstance()) by optimal assert

Some of tests use different method of
assertTrue(isinstance(A, B)) or assertEqual(type(A), B).
The correct way is to use assertIsInstance(A, B) provided
by testtools

Change-Id: Ia5156aef65da766520485bbc9495b61918407f22

openstack/oslo.policy