示例#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(''), '')