def test_set_active_cell_cambia_la_celda_activa(self):
        #Setup
        excel = WriterExcelManager()

        # Excersice
        excel.set_active_cell(7, 5)

        # Verify
        row, column = excel.get_active_cell()
        self.assertEquals((7, 5), (row, column))
    def test_append_row_mueve_el_cursor_dos_para_abajo_si_no_se_encuentra_en_la_columna_0(
            self):
        #Setup
        excel = WriterExcelManager()
        excel.set_active_cell(0, 5)

        # Excersice
        excel.append_row([1, 2, 3])

        # Verify
        row, column = excel.get_active_cell()
        self.assertEquals((2, 0), (row, column))
    def test_write_row_mueve_el_cursor_uno_para_abajo_por_mas_que_se_encuentre_en_otra_posicion(
            self):
        #Setup
        excel = WriterExcelManager()
        excel.set_active_cell(0, 5)

        # Excersice
        excel.write_row([1, 2, 3])

        # Verify
        row, column = excel.get_active_cell()
        self.assertEquals((1, 0), (row, column))
    def test_puedo_imprimir_multiples_tipos_de_dato_y_no_falla(self):
        #Setup
        excel = WriterExcelManager()
        excel.set_active_cell(0, 5)

        # Excersice
        excel.write('string')
        excel.write(u'unicode')
        excel.write('áéíóú'.decode('latin1'))
        excel.write('áéíóú'.decode('utf-8'))
        excel.write('áéíóú'.decode('utf-16'))
        excel.write(unichr(40960))
        excel.write(1)
        excel.write(1L)
        excel.write(date(2012, 12, 13))
        excel.write(datetime(2012, 12, 13, 15, 15))
        excel.write(time(15, 15))
        excel.write(1.5)
        excel.write(None)
        excel.write([1, 2, 3])
        excel.write((1, 2, 3))
        excel.write({1: 1, 2: 2})