Example #1
0
 def testAllParameters(self):
     """Test the full set of parameters are correct"""
     cqi = CyberQInterface("127.0.0.1")
     assert cqi._validateParameters({
         "COOK_NAME": 1,
         "COOK_SET": 1,
         "FOOD1_NAME": 1,
         "FOOD1_SET": 1,
         "FOOD2_NAME": 1,
         "FOOD2_SET": 1,
         "FOOD3_NAME": 1,
         "FOOD3_SET": 1,
         "_COOK_TIMER": 1,
         "COOK_TIMER": 1,
         "COOKHOLD": 1,
         "TIMEOUT_ACTION": 1,
         "ALARMDEV": 1,
         "COOK_RAMP": 1,
         "OPENDETECT": 1,
         "CYCTIME": 1,
         "PROPBAND": 1,
         "MENU_SCROLLING": 1,
         "LCD_BACKLIGHT": 1,
         "LCD_CONTRAST": 1,
         "DEG_UNITS": 1,
         "ALARM_BEEPS": 1,
         "KEY_BEEPS": 1
     }) == {}
Example #2
0
 def testBadParameters(self):
     """Test parameters with 3 bad parameters"""
     cqi = CyberQInterface("127.0.0.1")
     assert len(
         cqi._validateParameters({
             "COK_NAME": 1,
             "COOK_SET": 1,
             "FOOD1_NAME": 1,
             "FOOD1_SET": 1,
             "FOOD2_NAME": 1,
             "FOOD2_SET": 1,
             "FOOD3_NAME": 1,
             "FOOD3_SET": 1,
             "_COOK_TIMER": 1,
             "COOK_TIMER": 1,
             "COOKHOLD": 1,
             "TIEOUT_ACTION": 1,
             "ALARMDEV": 1,
             "COOK_RAMP": 1,
             "OPENDETECT": 1,
             "CYCTIME": 1,
             "PROPBAND": 1,
             "MNU_SCROLLING": 1,
             "LCD_BACKLIGHT": 1,
             "LCD_CONTRAST": 1,
             "DEG_UNITS": 1,
             "ALARM_BEEPS": 1,
             "KEY_BEEPS": 1
         })) == 3
Example #3
0
 def testAllParameters(self):
     """Test the full set of parameters are correct"""
     cqi = CyberQInterface("127.0.0.1")
     assert cqi._validateParameters( {"COOK_NAME": 1, "COOK_SET": 1,
                                      "FOOD1_NAME": 1, "FOOD1_SET": 1,
                                      "FOOD2_NAME": 1, "FOOD2_SET": 1,
                                      "FOOD3_NAME": 1, "FOOD3_SET": 1,
                                      "_COOK_TIMER": 1, "COOK_TIMER": 1,
                                      "COOKHOLD": 1, "TIMEOUT_ACTION": 1,
                                      "ALARMDEV": 1, "COOK_RAMP": 1,
                                      "OPENDETECT": 1, "CYCTIME": 1,
                                      "PROPBAND": 1, "MENU_SCROLLING": 1,
                                      "LCD_BACKLIGHT": 1, "LCD_CONTRAST": 1,
                                      "DEG_UNITS": 1, "ALARM_BEEPS": 1,
                                      "KEY_BEEPS": 1}) == {}
Example #4
0
 def testBadParameters(self):
     """Test parameters with 3 bad parameters"""
     cqi = CyberQInterface("127.0.0.1")
     assert len(cqi._validateParameters( {"COK_NAME": 1, "COOK_SET": 1,
                                          "FOOD1_NAME": 1, "FOOD1_SET": 1,
                                          "FOOD2_NAME": 1, "FOOD2_SET": 1,
                                          "FOOD3_NAME": 1, "FOOD3_SET": 1,
                                          "_COOK_TIMER": 1, "COOK_TIMER": 1,
                                          "COOKHOLD": 1, "TIEOUT_ACTION": 1,
                                          "ALARMDEV": 1, "COOK_RAMP": 1,
                                          "OPENDETECT": 1, "CYCTIME": 1,
                                          "PROPBAND": 1, "MNU_SCROLLING": 1,
                                          "LCD_BACKLIGHT": 1,
                                          "LCD_CONTRAST": 1, "DEG_UNITS": 1,
                                          "ALARM_BEEPS": 1,
                                          "KEY_BEEPS": 1})) == 3