Beispiel #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')
Beispiel #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')
Beispiel #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")