示例#1
0
 def test_text_box_cfg_text_format(self):
     test_control = TextBox("TEXTBOXID", text_format=TextFormat.NUMBER)
     cfg_dict = _get_cfg_dict(test_control.get_cfg(1))
     self.assertEqual(TextFormat(cfg_dict['format']), TextFormat.NUMBER,
                      "CFG format should be CENTER")
示例#2
0
 def test_text_box_cfg_text_align(self):
     test_control = TextBox("TEXTBOXID", text_align=TextAlignment.CENTER)
     cfg_dict = _get_cfg_dict(test_control.get_cfg(1))
     self.assertEqual(TextAlignment(cfg_dict['textAlign']),
                      TextAlignment.CENTER,
                      "CFG textAlign should be CENTER")