def _assert_class_has_docstrings(self, obj, long_description=True):
        if not obj.__module__.startswith("rally."):
            return

        self.assertIsNotNone(obj.__doc__,
                             "%s doesn't have a class-level docstring." %
                             obj)
        doc = info.parse_docstring(obj.__doc__)
        self.assertIsNotNone(
            doc["short_description"],
            "Docstring for %s should have a one-line description." % obj)
        if long_description:
            self.assertIsNotNone(
                doc["long_description"],
                obj % "Docstring for %s should have a multi-line description.")
dataset/ETHPy150Open openstack/rally/tests/unit/test_docstrings.py/DocstringsTestCase._assert_class_has_docstrings/swapped operands of `%`