blob: 33220d6e536463b67f334e88993b27e6df964973 [file] [log] [blame]
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import unicode_literals
import time
from mach.base import (
CommandArgument,
CommandProvider,
Command,
)
import mach.test.common2 as common2
@CommandProvider
class TestCommandProvider(object):
@Command('throw')
@CommandArgument('--message', '-m', default='General Error')
def throw(self, message):
raise Exception(message)
@Command('throw_deep')
@CommandArgument('--message', '-m', default='General Error')
def throw_deep(self, message):
common2.throw_deep(message)