コード例 #1
0
 def test_add_pkg(self):
     '''
         Test to add a package to a dict of installed packages.
     '''
     self.assertIsNone(pkg_resource.add_pkg({'pkgs': []}, 'name',
                                            'version'))
コード例 #2
0
ファイル: pkg_resource_test.py プロジェクト: DaveQB/salt
 def test_add_pkg(self):
     '''
         Test to add a package to a dict of installed packages.
     '''
     self.assertIsNone(pkg_resource.add_pkg('pkgs', 'name', 'version'))
コード例 #3
0
ファイル: test_pkg_resource.py プロジェクト: zxstar/salt
 def test_add_pkg(self):
     """
         Test to add a package to a dict of installed packages.
     """
     self.assertIsNone(pkg_resource.add_pkg({"pkgs": []}, "name",
                                            "version"))
コード例 #4
0
def test_add_pkg():
    """
    Test to add a package to a dict of installed packages.
    """
    assert pkg_resource.add_pkg({"pkgs": []}, "name", "version") is None