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'))
def test_ascii_bytes(self): ''' Test must_be_ascii() behavior when input is ascii bytes ''' self.assertEqual(utils_path.must_be_ascii('abc'), 'abc')