def test_set_border_style(self): style = Style.get_default_cell_style() border_style = Style.get_default_border_style() border_style['color'] = 17 style.set_border_style(border_style, False, True, False, True) self.assertEqual(style['left']['color'], DEFAULT_BORDER_COLOR) self.assertEqual(style['right']['color'], 17) self.assertEqual(style['top']['color'], DEFAULT_BORDER_COLOR) self.assertEqual(style['bottom']['color'], 17)
def test_set_border_status(self): style = Style.get_default_cell_style() style.set_border_status(False, True, False, True) self.assertFalse(style['left']['status']) self.assertTrue(style['right']['status']) self.assertFalse(style['top']['status']) self.assertTrue(style['bottom']['status'])