Esempio n. 1
0
 def test_replace_display_form(self):
     cell = Cell()
     cell.set_value(100.)
     cell.display_form = "100,00"
     self.assertEqual(cell.plaintext(), "100,00")
     cell.display_form = "200,00"
     self.assertEqual(cell.plaintext(), "200,00")
Esempio n. 2
0
 def test_replace_display_form(self):
     cell = Cell()
     cell.set_value(100.)
     cell.display_form = "100,00"
     self.assertEqual(cell.plaintext(), "100,00")
     cell.display_form = "200,00"
     self.assertEqual(cell.plaintext(), "200,00")
Esempio n. 3
0
 def test_error_display_form_for_string(self):
     cell = Cell('cell with string')
     with self.assertRaises(TypeError):
         cell.display_form = "raise Error"
Esempio n. 4
0
 def test_error_display_form_None(self):
     cell = Cell()
     with self.assertRaises(TypeError):
         cell.display_form = "raise Error"
Esempio n. 5
0
 def test_error_display_form_for_string(self):
     cell = Cell('cell with string')
     with self.assertRaises(TypeError):
         cell.display_form = "raise Error"
Esempio n. 6
0
 def test_error_display_form_None(self):
     cell = Cell()
     with self.assertRaises(TypeError):
         cell.display_form = "raise Error"