def test_custom_dir(self): __builtin__.__pillar__ = {'system': {'var': '/mnt/var1'}} self.assertEqual('/mnt/var1/xyz/b', system.custom_dir('xyz', 'b'))
def test_custom_dir(self): __builtin__.__pillar__ = {"system": {"var": "/mnt/var1"}} self.assertEqual("/mnt/var1/xyz/b", system.custom_dir("xyz", "b"))
def test_custom_dir_no_system(self): self.assertEqual('/mnt/var/xyz/a', system.custom_dir('xyz', 'a'))
def test_custom_dir_no_system(self): self.assertEqual("/mnt/var/xyz/a", system.custom_dir("xyz", "a"))