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
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)
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)
def test_file_dict(self): ''' Test - List the files that belong to a package, grouped by package. ''' assert aptpkg.file_dict('wget') == LOWPKG_FILES