コード例 #1
0
ファイル: test_aptpkg.py プロジェクト: mcalmer/salt
def test_file_dict(lowpkg_files_var):
    """
    Test - List the files that belong to a package, grouped by package.
    """
    mock = MagicMock(return_value=lowpkg_files_var)
    with patch.dict(aptpkg.__salt__, {"lowpkg.file_dict": mock}):
        assert aptpkg.file_dict("wget") == lowpkg_files_var
コード例 #2
0
 def test_file_dict(self):
     '''
     Test - List the files that belong to a package, grouped by package.
     '''
     mock = MagicMock(return_value=LOWPKG_FILES)
     with patch.dict(aptpkg.__salt__, {'lowpkg.file_dict': mock}):
         self.assertEqual(aptpkg.file_dict('wget'), LOWPKG_FILES)
コード例 #3
0
ファイル: test_aptpkg.py プロジェクト: owmtia/salt
 def test_file_dict(self):
     """
     Test - List the files that belong to a package, grouped by package.
     """
     mock = MagicMock(return_value=LOWPKG_FILES)
     with patch.dict(aptpkg.__salt__, {"lowpkg.file_dict": mock}):
         self.assertEqual(aptpkg.file_dict("wget"), LOWPKG_FILES)
コード例 #4
0
ファイル: aptpkg_test.py プロジェクト: bryson/salt
 def test_file_dict(self):
     '''
     Test - List the files that belong to a package, grouped by package.
     '''
     mock = MagicMock(return_value=LOWPKG_FILES)
     with patch.dict(aptpkg.__salt__, {'lowpkg.file_dict': mock}):
         self.assertEqual(aptpkg.file_dict('wget'), LOWPKG_FILES)
コード例 #5
0
ファイル: test_aptpkg.py プロジェクト: arbulu89/salt
 def test_file_dict(self):
     '''
     Test - List the files that belong to a package, grouped by package.
     '''
     assert aptpkg.file_dict('wget') == LOWPKG_FILES