Exemplo n.º 1
0
class TestLodstatsMapper(TestInterface):
    def __init__(self):
        self.lodstatsMapper = LodstatsMapper()
        pass

    def maprandom20(self):
        resourceIds = self.getRandom20Resources()
        for resourceId in resourceIds:
            print resourceId
            try:
                mappings = self.lodstatsMapper.getMappings(resourceId)
                import pprint
                pprinter = pprint.PrettyPrinter()
                pprinter.pprint(mappings)
            except BaseException as e:
                print str(e)
Exemplo n.º 2
0
 def __init__(self):
     self.lodstatsMapper = LodstatsMapper()
     pass