def test_resolve_path_cwd(self): self.assertEquals(os.path.join(os.getcwd(), 'test.yml'), resolve_path('{{CWD}}/test.yml')) self.assertEquals(os.path.join(os.getcwd(), 'test.yml'), resolve_path('./test.yml'))
def test_resolve_path(self): self.assertEquals(os.path.join(curdir, 'test.yml'), resolve_path('./test.yml', cfg_file))
def test_resolve_path(self): assert os.path.join(curdir, 'test.yml') == resolve_path( './test.yml', cfg_file)
def test_resolve_path_cwd(self): assert os.path.join(os.getcwd(), 'test.yml') == resolve_path('{{CWD}}/test.yml') assert os.path.join(os.getcwd(), 'test.yml') == resolve_path('./test.yml')