Пример #1
0
 def test_log_dir(self):
     __builtin__.__pillar__ = {'system': {'var': '/var/log'}}
     self.assertEqual('/var/log/xyz/log', system.log_dir('xyz'))
Пример #2
0
 def test_log_dir(self):
     __builtin__.__pillar__ = {"system": {"var": "/var/log"}}
     self.assertEqual("/var/log/xyz/log", system.log_dir("xyz"))
Пример #3
0
 def test_log_dir_no_system(self):
     self.assertEqual('/mnt/var/xyz/log', system.log_dir('xyz'))
Пример #4
0
 def test_log_dir_no_system(self):
     self.assertEqual("/mnt/var/xyz/log", system.log_dir("xyz"))