def test_input_add_parameters(self): input = "/add clean 86400 %s" % (Event.DEFAULT_ALARM_TIME) output_options = command_parser(input) self.assertEqual( output_options, { "name": "clean", "interval": "86400", "alarm_time": Event.DEFAULT_ALARM_TIME })
def test_input_list_parameters(self): input = "/list" output_options = command_parser(input) self.assertEqual(output_options, {})
def test_input_reset_parameters(self): input = "/reset clean" output_options = command_parser(input) self.assertEqual(output_options, {"name": "clean"})