def ensure_str(text):
    if isinstance(text, unicode):
        return text.encode(pyreadline_codepage, "replace")
    return text
UNIT test: services.common.simualtion.calculate_groundtrack
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/unicode_helper.py/ensure_str--crossover with--dataset/ETHPy150Open satnet-project/server/services/common/tests/test_simulation.py/TestSimulation.test_calculate_groundtrack