def test_ext_pillar(hg_setup_and_teardown): data = hg_pillar.ext_pillar("*", None, hg_setup_and_teardown) assert data == {"testinfo": "info", "testinfo2": "info"} data = hg_pillar.ext_pillar("test", None, hg_setup_and_teardown) assert data == {"testinfo": "info", "testinfo2": "info"} data = hg_pillar.ext_pillar("*", None, hg_setup_and_teardown, root="subdir") assert data == {"testinfo": "info", "testinfo2": "info"}
def test_base(self): 'check hg repo is imported correctly' mypillar = hg_pillar.ext_pillar('*', None, 'file://{0}'.format(self.hg_repo_path)) self.assertEqual(PILLAR_CONTENT, mypillar)
def test_base(self): "check hg repo is imported correctly" mypillar = hg_pillar.ext_pillar( "*", None, "file://{}".format(self.hg_repo_path) ) self.assertEqual(PILLAR_CONTENT, mypillar)