def test_pictureroot2_not_chosen(self): view = MockView(combos={'name_combo': [], 'type_combo': []}) view.reply_file_chooser_dialog = [] presenter = ConnMgrPresenter(view) presenter.pictureroot = 'previously' presenter.on_pictureroot2_btnbrowse_clicked() self.assertEquals(presenter.pictureroot, 'previously')
def test_pictureroot2_not_chosen(self): view = MockView(combos={"name_combo": [], "type_combo": []}) view.reply_file_chooser_dialog = [] presenter = ConnMgrPresenter(view) presenter.pictureroot = "previously" presenter.on_pictureroot2_btnbrowse_clicked() self.assertEquals(presenter.pictureroot, "previously")
def test_pictureroot2_chosen(self): view = MockView(combos={'name_combo': [], 'type_combo': []}) view.reply_file_chooser_dialog.append('chosen') presenter = ConnMgrPresenter(view) presenter.on_pictureroot2_btnbrowse_clicked() presenter.on_text_entry_changed('pictureroot2_entry') self.assertEquals(presenter.pictureroot, 'chosen')
def test_pictureroot2_chosen(self): view = MockView(combos={"name_combo": [], "type_combo": []}) view.reply_file_chooser_dialog.append("chosen") presenter = ConnMgrPresenter(view) presenter.on_pictureroot2_btnbrowse_clicked() presenter.on_text_entry_changed("pictureroot2_entry") self.assertEquals(presenter.pictureroot, "chosen")