Ejemplo n.º 1
0
 def test_normal_string_1(self):
     r = to_text("normal string")
     self.assertEqual(r, "normal string")
Ejemplo n.º 2
0
 def test_empty_string_2(self):
     r = to_text(None)
     self.assertIsNone(r)
Ejemplo n.º 3
0
 def test_empty_string_3(self):
     r = to_text(None, "-")
     self.assertEqual(r, "-")
Ejemplo n.º 4
0
 def test_empty_string_1(self):
     r = to_text("")
     self.assertIsNone(r)