3 from __future__
import absolute_import
, division
, unicode_literals
7 from cola
import compat
10 class CompatTestCase(unittest
.TestCase
):
11 """Tests the compat module"""
13 def test_setenv(self
):
14 """Test the core.decode function
16 key
= 'COLA_UNICODE_TEST'
18 compat
.setenv(key
, value
)
19 self
.assertTrue(key
in os
.environ
)
20 self
.assertTrue(os
.getenv(key
))
23 self
.assertFalse(key
in os
.environ
)
24 self
.assertFalse(os
.getenv(key
))
27 if __name__
== '__main__':