Exemple #1
0
 def test_purelib_platlib(self):
     """
     Test the "wheel is purelib/platlib" code.
     """
     packages =  [("pure_wheel", "data/packages/pure_wheel-1.7", True),
                  ("plat_wheel", "data/packages/plat_wheel-1.7", False)]        
     for name, path, expected in packages:
         assert wheel.root_is_purelib(name, path) == expected
Exemple #2
0
 def test_purelib_platlib(self):
     """
     Test the "wheel is purelib/platlib" code.
     """
     packages = [("pure_wheel", "data/packages/pure_wheel-1.7", True),
                 ("plat_wheel", "data/packages/plat_wheel-1.7", False)]
     for name, path, expected in packages:
         assert wheel.root_is_purelib(name, path) == expected
Exemple #3
0
    def test_purelib_platlib(self, data):
        """
        Test the "wheel is purelib/platlib" code.
        """
        packages = [
            ("pure_wheel", data.packages.join("pure_wheel-1.7"), True),
            ("plat_wheel", data.packages.join("plat_wheel-1.7"), False),
        ]

        for name, path, expected in packages:
            assert wheel.root_is_purelib(name, path) == expected
Exemple #4
0
    def test_purelib_platlib(self, data):
        """
        Test the "wheel is purelib/platlib" code.
        """
        packages = [
            ("pure_wheel", data.packages.join("pure_wheel-1.7"), True),
            ("plat_wheel", data.packages.join("plat_wheel-1.7"), False),
        ]

        for name, path, expected in packages:
            assert wheel.root_is_purelib(name, path) == expected