def setUp(self): self.cmd = Object() deviceConfig = Object() deviceConfig.device = 'localhost' self.cmd.deviceConfig = deviceConfig self.cmd.name = "testDataSource" self.cmd.parser = "JSON" self.cmd.result = Object() self.cmd.result.exitCode = 0 self.cmd.severity = 2 self.cmd.eventKey = 'testEventKey' self.cmd.eventClass = '/Cmd' self.cmd.command = "testJSONCommand" self.cmd.points = [] self.parser = JSON() self.results = ParsedResults()