Example #1
0
 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()
Example #2
0
 def test_current(self):
     assert_equal(self.wb.xl_workbook, Workbook.current().xl_workbook)
Example #3
0
 def test_current(self):
     assert_equal(self.wb.xl_workbook, Workbook.current().xl_workbook)
Example #4
0
 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()
Example #5
0
 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()