Esempio n. 1
0
 def test_expand_paths_empty(self):
     self.assertEqual(expand_path(None), None)
     self.assertEqual(expand_path(''), '')
Esempio n. 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')
Esempio n. 3
0
 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')
Esempio n. 4
0
 def test_expand_paths_empty(self):
     assert_equal(expand_path(None), None)
     assert_equal(expand_path(''), '')
Esempio n. 5
0
 def test_expand_paths_empty(self):
     self.assertEqual(expand_path(None), None)
     self.assertEqual(expand_path(''), '')
Esempio n. 6
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")
Esempio n. 7
0
 def test_expand_paths_empty(self):
     assert_equal(expand_path(None), None)
     assert_equal(expand_path(''), '')