示例#1
0
 def test_ascii_str(self):
     ''' Test must_be_ascii() behavior when input is ascii str '''
     self.assertEqual(utils_path.must_be_ascii('abc'),
                      'abc'.decode('utf-8'))
示例#2
0
 def test_ascii_bytes(self):
     ''' Test must_be_ascii() behavior when input is ascii bytes '''
     self.assertEqual(utils_path.must_be_ascii('abc'), 'abc')