def verify_json(filename):
    try:
        with open(filename) as jsonfile:
            json.loads(jsonfile.read())
        return True
    except ValueError:
        return False
Test if it runs arbitrary django management command
dataset/ETHPy150Open gosquadron/squadron/squadron/autotest.py/verify_json--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/djangomod_test.py/DjangomodTestCase.test_command