diff --git a/tests/test_engines.py b/tests/test_engines.py index 8818815..47b4cd6 100644 --- a/tests/test_engines.py +++ b/tests/test_engines.py @@ -166,8 +166,8 @@ class DistributedTestCase(_EnginesHelperTestCase): return TestDistributedModel def test_bad_cluster_name(self): - d_model = self._create_distributed('cluster_name') with self.assertRaises(ServerError) as cm: + d_model = self._create_distributed('cluster_name') self.database.count(d_model) exc = cm.exception