예제 #1
0
 def test_get_command_packages(self):
     dist = Distribution()
     self.assertEqual(dist.command_packages, None)
     cmds = dist.get_command_packages()
     self.assertEqual(cmds, ['distutils.command'])
     self.assertEqual(dist.command_packages, ['distutils.command'])
     dist.command_packages = 'one,two'
     cmds = dist.get_command_packages()
     self.assertEqual(cmds, ['distutils.command', 'one', 'two'])
     return
예제 #2
0
 def test_get_command_packages(self):
     dist = Distribution()
     self.assertEqual(dist.command_packages, None)
     cmds = dist.get_command_packages()
     self.assertEqual(cmds, ['distutils.command'])
     self.assertEqual(dist.command_packages, ['distutils.command'])
     dist.command_packages = 'one,two'
     cmds = dist.get_command_packages()
     self.assertEqual(cmds, ['distutils.command', 'one', 'two'])
     return
예제 #3
0
    def test_get_command_packages(self):
        dist = Distribution()
        self.assertEquals(dist.command_packages, None)
        cmds = dist.get_command_packages()
        self.assertEquals(cmds, ["distutils.command"])
        self.assertEquals(dist.command_packages, ["distutils.command"])

        dist.command_packages = "one,two"
        cmds = dist.get_command_packages()
        self.assertEquals(cmds, ["distutils.command", "one", "two"])