def test_archive(self): ''' Test for Export a tarball from the repository ''' with patch.dict(hg.__salt__, {'cmd.run': MagicMock(return_value='A')}): self.assertEqual(hg.archive('cwd', 'output'), 'A')
def test_archive(self): """ Test for Export a tarball from the repository """ with patch.dict(hg.__salt__, {"cmd.run": MagicMock(return_value="A")}): self.assertEqual(hg.archive("cwd", "output"), "A")