docs: advertise Alt + M for amend mode
[git-cola.git] / test / compat_test.py
blob7f474211fdd14a8804dbbd6d226fbabc5591686d
1 """Tests the compat module"""
2 import os
4 from cola import compat
7 def test_setenv():
8 """Test the core.decode function"""
9 key = 'COLA_UNICODE_TEST'
10 value = '字龍'
11 compat.setenv(key, value)
12 assert key in os.environ
13 assert os.getenv(key)
15 compat.unsetenv(key)
16 assert key not in os.environ
17 assert not os.getenv(key)