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
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"])