File: test.py

package info (click to toggle)
libaws 20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,656 kB
  • sloc: ada: 95,505; python: 2,270; ansic: 1,017; makefile: 829; xml: 235; javascript: 202; java: 112; sh: 106
file content (21 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from test_support import *
import string

exec_cmd('ada2wsdl',
         ['-q', '-f', '-I.', '-Ptcons2_main',
          '-a', 'http://localhost:7701', 'tcons2.ads', '-o', 'tcons2.wsdl'])
exec_cmd('wsdl2aws',
         ['-q', '-f', '-cb', '-types', 'tcons2', 'tcons2.wsdl'])

build_and_run('tcons2_main')

P = False

print("==============================")
for l in open("tcons2.wsdl").readlines():
    if string.find(l, "<wsdl:types>") >= 0:
        P = True
    if string.find(l, "</wsdl:types>") >= 0:
        P = False
    if P is True and string.find(l, "<xsd:") >= 0:
        print l