Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/q/u/quintagroup.pingtool-1.1.3/quintagroup/pingtool/tests/testSetup.py   quintagroup.pingtool(Download)
from quintagroup.pingtool.config import PROJECTNAME
from base import *
from config import INSTALLED_TYPES, CONFIGLET
 
class TestSetup(TestCase):
    def test_install_uninstall_types(self):
        # test that types are installed/uninstalled well
        ttool = self.ttool
        tids = ttool.objectIds()
        for id in INSTALLED_TYPES:
 
	tids = ttool.objectIds()
        for id in INSTALLED_TYPES:
            self.assertNotEqual(id in tids, True, 'Type %s found after uninstallation' % id)