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

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

src/n/i/ninja-ide-HEAD/ninja_tests/tools/completion/test_analyzer.py   ninja-ide(Download)
        self.assertEqual(assign.name, 'bo')
        assign_test1 = model.Assign('bo')
        assign_test1.add_data(0, '__builtin__.bool', '    bo = True', None)
        expected_data = assign_test1.data[0]
        result_data = assign.data[0]
        self.assertEqual(assign.name, 'obj')
        assign_test2 = model.Assign('obj')
        assign_test2.add_data(0, model.late_resolution,
            '    obj = os.path', _ast.Attribute)
        expected_data = assign_test2.data[0]
        self.assertEqual(assign.name, 'di')
        assign_test2 = model.Assign('di')
        assign_test2.add_data(0, model.late_resolution,
            '    di = Test()', _ast.Call)
        expected_data = assign_test2.data[0]
        self.assertEqual(assign.name, 'another')
        assign_test2 = model.Assign('another')
        assign_test2.add_data(0, model.late_resolution,
            '    another = obj', _ast.Name)
        expected_data = assign_test2.data[0]
        self.assertEqual(assign.name, 'code')
        assign_test1 = model.Assign('code')
        assign_test1.add_data(0, '__builtin__.str', "        code = 'string'",
            None)
        expected_data = assign_test1.data[0]

src/n/i/ninja-ide-HEAD/ninja_tests/tools/completion/test_code_completion_late_resolution.py   ninja-ide(Download)
        type1 = model._TypeData(None, 'os', 'import os', None)
        type2 = model.Assign('p')
        type2.add_data(4, model.late_resolution, 'p = os.path', _ast.Attribute)
        expected = {'os': type1}