示例#1
0
 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')
示例#2
0
 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')
示例#3
0
 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")