Changeset - 1cb10d6abd7b
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-08-07 00:07:10
marcin@python-works.com
fix vcs test after get_user_home patch
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/vcs/test_utils.py
Show inline comments
 
@@ -256,13 +256,13 @@ class TestGetTotalSeconds(unittest.TestC
 

	
 

	
 
class TestGetUserHome(unittest.TestCase):
 

	
 
    @mock.patch.object(os, 'environ', {})
 
    def test_defaults_to_none(self):
 
        self.assertEqual(get_user_home(), None)
 
        self.assertEqual(get_user_home(), '')
 

	
 
    @mock.patch.object(os, 'environ', {'HOME': '/home/foobar'})
 
    def test_unix_like(self):
 
        self.assertEqual(get_user_home(), '/home/foobar')
 

	
 
    @mock.patch.object(os, 'environ', {'USERPROFILE': '/Users/foobar'})
0 comments (0 inline, 0 general)