def test_regular(self): actual = Target( children=[ Input( Mock(), children=[Mock()] ), Output(Mock(), children=[Mock()]), Goto() ] ) folder = Folder( children=[actual] ) dialog = Mock() folder._set_dialog(dialog) self.assertEqual( dialog, actual.children[0].dialog ) self.assertEqual( dialog, actual.children[1].dialog ) self.assertEqual( dialog, actual.children[2].dialog )
def test_regular(self): actual = Target( Prompt( items=[Mock()] ), children=[ Action("var_name_value", "operator_value"), Goto() ] ) folder = Folder( children=[actual] ) dialog = Mock() folder._set_dialog(dialog) self.assertEqual( dialog, actual.children[0].dialog ) self.assertEqual( dialog, actual.children[1].dialog ) self.assertEqual( dialog, actual.children[2].dialog )
def test_regular(self): actual = Target( Mock(), children=[ Grammar(watson_items=[Mock()]), Action(var_name="var_name_value", operator="operator_value"), Goto() ] ) folder = Folder( children=[actual] ) dialog = Mock() folder._set_dialog(dialog) self.assertEqual( dialog, actual.children[0].dialog ) self.assertEqual( dialog, actual.children[1].dialog ) self.assertEqual( dialog, actual.children[2].dialog )
def test_regular(self): actual = Target( Prompt(items=[Mock()]), children=[Action("var_name_value", "operator_value"), Goto()]) folder = Folder(children=[actual]) dialog = Mock() folder._set_dialog(dialog) self.assertEqual(dialog, actual.children[0].dialog) self.assertEqual(dialog, actual.children[1].dialog) self.assertEqual(dialog, actual.children[2].dialog)
def test_regular(self): actual = Target(children=[ Input(Mock(), children=[Mock()]), Output(Mock(), children=[Mock()]), Goto() ]) folder = Folder(children=[actual]) dialog = Mock() folder._set_dialog(dialog) self.assertEqual(dialog, actual.children[0].dialog) self.assertEqual(dialog, actual.children[1].dialog) self.assertEqual(dialog, actual.children[2].dialog)
def test_regular(self): actual = Target(Mock(), children=[ Grammar(watson_items=[Mock()]), Action(var_name="var_name_value", operator="operator_value"), Goto() ]) folder = Folder(children=[actual]) dialog = Mock() folder._set_dialog(dialog) self.assertEqual(dialog, actual.children[0].dialog) self.assertEqual(dialog, actual.children[1].dialog) self.assertEqual(dialog, actual.children[2].dialog)