def test_badarguments(self):
    try:
        goterror = False
        speedify._run_speedify_cmd(['invalidcommand'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Unknown Parameter' in sapie.message))
        goterror = True
    self.assertTrue(goterror)
    try:
        goterror = False
        speedify._run_speedify_cmd(['overflow'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Missing parameters' in sapie.message))
        goterror = True
    self.assertTrue(goterror)
    try:
        goterror = False
        speedify._run_speedify_cmd(['overflow', 'bob'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Invalid parameters' in sapie.message))
        goterror = True
    self.assertTrue(goterror)
def test_badarguments(self):
    try:
        goterror = False
        speedify._run_speedify_cmd(['invalidcommand'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Unknown Parameter' in sapie.message))
        goterror = True
    self.assertTrue(goterror)
    try:
        goterror = False
        speedify._run_speedify_cmd(['overflow'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Missing parameters' in sapie.message))
        goterror = True
    self.assertTrue(goterror)
    try:
        goterror = False
        speedify._run_speedify_cmd(['overflow', 'bob'])
    except speedify.SpeedifyError as sapie:
        self.assertTrue(('Invalid parameters' in sapie.message))
        goterror = True
    self.assertTrue(goterror)