Swap assertEqual for assertIsInstance