def METHOD_NAME(self):
    renditions = Rendition.objects.all()
    total_renditions = len(renditions)
    output = self.run_command()
    output_string = self.REAESC.sub("", output.read())
    # checking if the number of renditions regenerated equal total_renditions
    self.assertEqual(
        output_string,
        f"Regenerating {total_renditions} rendition(s)\n"
        f"Successfully processed {total_renditions} rendition(s)\n",
    )
    # checking if the number of renditions now equal total_renditions
    renditions_now = Rendition.objects.all()
    total_renditions_now = len(renditions_now)
    self.assertEqual(total_renditions_now, total_renditions)