2 # -*- encoding: utf-8 -*-
4 from __future__
import unicode_literals
9 from cola
import compat
12 class CompatTestCase(unittest
.TestCase
):
13 """Tests the compat module"""
15 def test_setenv(self
):
16 """Test the core.decode function
18 key
= 'COLA_UNICODE_TEST'
20 compat
.setenv(key
, value
)
21 self
.assertTrue(key
in os
.environ
)
22 self
.assertTrue(os
.getenv(key
))
25 self
.assertFalse(key
in os
.environ
)
26 self
.assertFalse(os
.getenv(key
))
29 if __name__
== '__main__':