For this kind of check, you should use ``assertRaises()``:

~~~python
self.assertRaises(TypeError, Cluster, load_balancing_policy=RoundRobinPolicy)
~~~