Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/c/e/CellProfiler-HEAD/cellprofiler/modules/tests/test_identifysecondaryobjects.py   CellProfiler(Download)
            module.new_primary_objects_name.value = NEW_OBJECTS_NAME
 
            categories = module.get_categories(None, cpm.IMAGE)
            self.assertEqual(len(categories), 2)
            self.assertTrue(all([any([x == y for x in categories])
                                 for y in ("Count", "Threshold")]))
            categories = module.get_categories(None, OUTPUT_OBJECTS_NAME)
            self.assertTrue(all([any([x == y for x in categories])
                                 for y in ("Location","Parent", "Number")]))
            categories = module.get_categories(None, INPUT_OBJECTS_NAME)
            self.assertEqual(len(categories), 1)
            self.assertEqual(categories[0], "Children")
 
            categories = module.get_categories(None, NEW_OBJECTS_NAME)
        module.new_primary_objects_name.value = NEW_OBJECTS_NAME
 
        categories = module.get_categories(None, cpm.IMAGE)
        self.assertEqual(len(categories), 2)
        self.assertTrue(all([any([x == y for x in categories])