예제 #1
0
 def test_custom_dir(self):
     __builtin__.__pillar__ = {'system': {'var': '/mnt/var1'}}
     self.assertEqual('/mnt/var1/xyz/b', system.custom_dir('xyz', 'b'))
예제 #2
0
 def test_custom_dir(self):
     __builtin__.__pillar__ = {"system": {"var": "/mnt/var1"}}
     self.assertEqual("/mnt/var1/xyz/b", system.custom_dir("xyz", "b"))
예제 #3
0
 def test_custom_dir_no_system(self):
     self.assertEqual('/mnt/var/xyz/a', system.custom_dir('xyz', 'a'))
예제 #4
0
 def test_custom_dir_no_system(self):
     self.assertEqual("/mnt/var/xyz/a", system.custom_dir("xyz", "a"))