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