<reponame>webnull/riotkit-do
#!/usr/bin/env python3

import os
from rkd.api.testing import BasicTestingCase
from rkd.api.inputoutput import get_environment_copy


class TestIOEnv(BasicTestingCase):
    def test_get_environment_copy(self):
        # prepare test data
        os.environ['FIRST'] = '$SECOND'

        # get result
        copy = get_environment_copy()

        self.assertEqual('\$SECOND', copy['FIRST'])

#!/usr/bin/env python3

import os
from rkd.api.testing import BasicTestingCase
from rkd.api.inputoutput import get_environment_copy


class TestIOEnv(BasicTestingCase):
    def test_get_environment_copy(self):
        # prepare test data
        os.environ['FIRST'] = '$SECOND'

        # get result
        copy = get_environment_copy()

        self.assertEqual('\$SECOND', copy['FIRST'])
#!/usr/bin/env python3 # prepare test data # get result