예제 #1
0
 def test_expand_paths_empty(self):
     self.assertEqual(expand_path(None), None)
     self.assertEqual(expand_path(''), '')
예제 #2
0
 def test_expand_paths(self):
     self.assertEqual(expand_path('$BAR'), 'bar')
     self.assertEqual(expand_path('~/$BAR'), '/home/foo/bar')
     self.assertEqual(expand_path('~/$BARn'), '/home/foo/$BARn')
     self.assertEqual(expand_path('~/${BAR}n'), '/home/foo/barn')
예제 #3
0
파일: conf_test.py 프로젝트: gimlids/LTPM
 def test_expand_paths(self):
     assert_equal(expand_path('$BAR'), 'bar')
     assert_equal(expand_path('~/$BAR'), '/home/foo/bar')
     assert_equal(expand_path('~/$BARn'), '/home/foo/$BARn')
     assert_equal(expand_path('~/${BAR}n'), '/home/foo/barn')
예제 #4
0
파일: conf_test.py 프로젝트: gimlids/LTPM
 def test_expand_paths_empty(self):
     assert_equal(expand_path(None), None)
     assert_equal(expand_path(''), '')
예제 #5
0
파일: test_conf.py 프로젝트: icio/mrjob
 def test_expand_paths_empty(self):
     self.assertEqual(expand_path(None), None)
     self.assertEqual(expand_path(''), '')
예제 #6
0
파일: test_conf.py 프로젝트: nyccto/mrjob
 def test_expand_paths(self):
     self.assertEqual(expand_path("$BAR"), "bar")
     self.assertEqual(expand_path("~/$BAR"), "/home/foo/bar")
     self.assertEqual(expand_path("~/$BARn"), "/home/foo/$BARn")
     self.assertEqual(expand_path("~/${BAR}n"), "/home/foo/barn")
예제 #7
0
 def test_expand_paths_empty(self):
     assert_equal(expand_path(None), None)
     assert_equal(expand_path(''), '')