You could use ```assertIsInstance``` here (and throughout).