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

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

src/d/d/dd-agent-HEAD/tests/test_web.py   dd-agent(Download)
logger = logging.getLogger(__file__)
 
from tests.common import get_check, read_data_from_file
 
class TestWeb(unittest.TestCase):
    def testNginxPlus(self):
        test_data = read_data_from_file('nginx_plus_in.json')
        expected = eval(read_data_from_file('nginx_plus_out.python'))
        nginx, instances = get_check('nginx', self.nginx_config)
        parsed = nginx.parse_json(test_data)