Ejemplo n.º 1
0
 def test_non_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{gHello{n')), 5)
     self.assertEqual(utils.m_len(ANSIString('|gHello|n')), 5)
Ejemplo n.º 2
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('|lclook|ltat|le'), 2)
Ejemplo n.º 3
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('|lcl|gook|ltat|le{n')), 2)
Ejemplo n.º 4
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{lcl{gook{ltat{le{n')), 2)
Ejemplo n.º 5
0
 def test_non_mxp_string(self):
     self.assertEqual(utils.m_len('Test_string'), 11)
Ejemplo n.º 6
0
 def test_non_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{gHello{n')), 5)  # TODO - cause this to fail by default.
     self.assertEqual(utils.m_len(ANSIString('|gHello|n')), 5)
Ejemplo n.º 7
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('{lclook{ltat{le'), 2)
Ejemplo n.º 8
0
 def test_non_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{gHello{n')), 5)
Ejemplo n.º 9
0
 def test_list(self):
     self.assertEqual(utils.m_len([None, None]), 2)
Ejemplo n.º 10
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('{lclook{ltat{le'), 2)
Ejemplo n.º 11
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{lcl{gook{ltat{le{n')), 2)
Ejemplo n.º 12
0
 def test_non_mxp_string(self):
     self.assertEqual(utils.m_len('Test_string'), 11)
Ejemplo n.º 13
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('|lcl|gook|ltat|le{n')), 2)
Ejemplo n.º 14
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('|lclook|ltat|le'), 2)
Ejemplo n.º 15
0
 def test_list(self):
     self.assertEqual(utils.m_len([None, None]), 2)
Ejemplo n.º 16
0
 def test_dict(self):
     self.assertEqual(utils.m_len({'hello': True, 'Goodbye': False}), 2)
Ejemplo n.º 17
0
 def test_dict(self):
     self.assertEqual(utils.m_len({'hello': True, 'Goodbye': False}), 2)
Ejemplo n.º 18
0
 def test_non_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{gHello{n')),
                      5)  # TODO - cause this to fail by default.
     self.assertEqual(utils.m_len(ANSIString('|gHello|n')), 5)