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: I8f721e98928c72847b720a64dc7020eb0ffe94fe

openstack/oslo.utils