Did I find the right examples for you? yes no

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

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