Beispiel #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)
Beispiel #2
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('|lclook|ltat|le'), 2)
Beispiel #3
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('|lcl|gook|ltat|le{n')), 2)
Beispiel #4
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{lcl{gook{ltat{le{n')), 2)
Beispiel #5
0
 def test_non_mxp_string(self):
     self.assertEqual(utils.m_len('Test_string'), 11)
Beispiel #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)
Beispiel #7
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('{lclook{ltat{le'), 2)
Beispiel #8
0
 def test_non_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{gHello{n')), 5)
Beispiel #9
0
 def test_list(self):
     self.assertEqual(utils.m_len([None, None]), 2)
Beispiel #10
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('{lclook{ltat{le'), 2)
Beispiel #11
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('{lcl{gook{ltat{le{n')), 2)
Beispiel #12
0
 def test_non_mxp_string(self):
     self.assertEqual(utils.m_len('Test_string'), 11)
Beispiel #13
0
 def test_mxp_ansi_string(self):
     self.assertEqual(utils.m_len(ANSIString('|lcl|gook|ltat|le{n')), 2)
Beispiel #14
0
 def test_mxp_string(self):
     self.assertEqual(utils.m_len('|lclook|ltat|le'), 2)
Beispiel #15
0
 def test_list(self):
     self.assertEqual(utils.m_len([None, None]), 2)
Beispiel #16
0
 def test_dict(self):
     self.assertEqual(utils.m_len({'hello': True, 'Goodbye': False}), 2)
Beispiel #17
0
 def test_dict(self):
     self.assertEqual(utils.m_len({'hello': True, 'Goodbye': False}), 2)
Beispiel #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)