Use assertIsInstance() instead of assertTrue(isinstance()) Change-Id: I8bfc27d72b27b512ac4f3fbb7c1821b9be1dbd06