Did I find the right examples for you? yes no

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

        def loadData(filename):
    f = open(os.path.join(os.path.dirname(__file__), 'data', filename), 'r')
    data = f.read()
    f.close()
    return data
        


src/z/e/ZenPacks.zenoss.RabbitMQ-HEAD/ZenPacks/zenoss/RabbitMQ/tests/testModeler.py   ZenPacks.zenoss.RabbitMQ(Download)
from ..modeler.plugins.zenoss.ssh.RabbitMQ import RabbitMQ as RabbitMQModeler
 
from .util import loadData
 
 
    def testRabbitMQCTLNotFound(self):
        modeler = RabbitMQModeler()
        modeler_results = loadData('model_no_rabbitmqctl.txt')
        data_maps = modeler.process(self.d, modeler_results, log)
 
        self.assertEquals(data_maps, None)
 
    def testNotRunning(self):
        modeler = RabbitMQModeler()
        modeler_results = loadData('model_not_running.txt')
    def testRunningZenoss(self):
        modeler = RabbitMQModeler()
        modeler_results = loadData('model_running_zenoss.txt')
        data_maps = modeler.process(self.d, modeler_results, log)
 
        self.assertEquals(len(data_maps), 6)
 
    def testRunningOpenStack(self):
        modeler = RabbitMQModeler()
        modeler_results = loadData('model_running_openstack.txt')

src/z/e/ZenPacks.zenoss.OpenStackSwift-HEAD/ZenPacks/zenoss/OpenStackSwift/tests/testParsers.py   ZenPacks.zenoss.OpenStackSwift(Download)
from ..parsers.SwiftRecon import SwiftRecon as SwiftReconParser
 
from .util import loadData
 
 
        cmd.eventClass = '/Status/Swift'
        cmd.eventKey = 'rabbitmq_node_status'
        cmd.result = FakeCmdResult(0, loadData(output_filename))
 
        metrics = (

src/z/e/ZenPacks.zenoss.RabbitMQ-HEAD/ZenPacks/zenoss/RabbitMQ/tests/testParser.py   ZenPacks.zenoss.RabbitMQ(Download)
from ..parsers.RabbitMQCTL import RabbitMQCTL as RabbitMQCTLParser
 
from .util import loadData
 
 
        cmd.eventClass = '/Status/RabbitMQ'
        cmd.eventKey = 'rabbitmq_node_status'
        cmd.result = FakeCmdResult(exitCode, loadData(output_filename))
        cmd.points = points
 

src/z/e/ZenPacks.zenoss.RabbitMQ-HEAD/ZenPacks/zenoss/RabbitMQ/tests/testModel.py   ZenPacks.zenoss.RabbitMQ(Download)
from ..modeler.plugins.zenoss.ssh.RabbitMQ import RabbitMQ as RabbitMQModeler
 
from .util import loadData
 
 
    def _loadZenossData(self):
        modeler = RabbitMQModeler()
        modeler_results = loadData('model_running_zenoss.txt')
 
        for data_map in modeler.process(self.d, modeler_results, log):