def test_set_current(self): wb2 = Workbook(app_visible=False, app_target=APP_TARGET) assert_equal(Workbook.current().xl_workbook, wb2.xl_workbook) self.wb.set_current() assert_equal(Workbook.current().xl_workbook, self.wb.xl_workbook) wb2.close()
def test_current(self): assert_equal(self.wb.xl_workbook, Workbook.current().xl_workbook)
def test_set_current(self): wb2 = Workbook() assert_equal(Workbook.current().xl_workbook, wb2.xl_workbook) self.wb.set_current() assert_equal(Workbook.current().xl_workbook, self.wb.xl_workbook) wb2.close()