Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

        def get_short_name(name):
    if not name:
        return None
    name = name.strip().lower()
    short_name = None
    if SHORT_TO_FULL_NAMES.has_key(name):
        short_name = name
    if not short_name:
        short_name = FULL_TO_SHORT_NAMES.get(name)
    return short_name
        


src/d/a/Darwin-Core-Engine-HEAD/dce/concepts_test.py   Darwin-Core-Engine(Download)
    def test_get_short_name(self):
        for short_name in concepts.SHORT_TO_FULL_NAMES.keys():
            sn = concepts.get_short_name(short_name)
            self.assertEqual(sn, short_name)