# Path: narrative/checker.py
# def check_enabled_assertions(verbose=False):
#     """
#     Check all enabled assertions.
#     """
#     process_periodicals(
#         AssertionMeta.objects.filter(enabled=True),
#         verbose, process_method_name='check_and_diagnose')


from optparse import make_option
from django.core.management.base import BaseCommand
from narrative.checker import check_enabled_assertions




class Command(BaseCommand):
    option_list = BaseCommand.option_list + (
        make_option(
            '--verbose', action='store_true', dest='verbose', default=False,
            help='Determins if we should display which '
                 'assertions are being checked'),)
    help = (
        'Check all enabled assertions.')

    def handle(self, *args, **options):

# Path: narrative/checker.py
# def check_enabled_assertions(verbose=False):
#     """
#     Check all enabled assertions.
#     """
#     process_periodicals(
#         AssertionMeta.objects.filter(enabled=True),
#         verbose, process_method_name='check_and_diagnose')


# Path: narrative/management/commands/check_assertions.py
from optparse import make_option
from django.core.management.base import BaseCommand
from narrative.checker import check_enabled_assertions





class Command(BaseCommand):
    option_list = BaseCommand.option_list + (
        make_option(
            '--verbose', action='store_true', dest='verbose', default=False,
            help='Determins if we should display which '
                 'assertions are being checked'),)
    help = (
        'Check all enabled assertions.')

    def handle(self, *args, **options):

        check_enabled_assertions(verbose=options['verbose'])