def test_validated_name(self, name): with self.assertRaises(InvalidQueueName): PQ.validated_name(name)