def METHOD_NAME(self, printException):
    test004 = Ruleset(cloud_provider='aws', filename='tests/data/invalid-file.json')
    assert (test004.rules == [])
    assert (printException.call_count == 1)
    assert ("invalid-file.json contains malformed JSON" in printException.call_args_list[0][0][0])