import nose.tools
from nose import SkipTest
from nose.plugins.attrib import attr

from __init__ import TESTDATA, WpsTestCase

from birdy.wpsparser import (
    parse_wps_description,
    parse_process_help
    )

class WPSParserTestCase(WpsTestCase):

    @attr('online')
    def test_parse_wps_description(self):
        result = parse_wps_description(self.wps)
        nose.tools.ok_('Emu' in result, result)

    @attr('online')
    def test_parse_process_help(self):
        process = self.wps.describeprocess('helloworld')
        result = parse_process_help(process)
        nose.tools.ok_('Hello' in result, result)
        

@@ -198,16 +198,79 @@
 ess_help
+,%0A    is_complex_data,%0A    parse_default,%0A    parse_description
 %0A    )%0A%0A
@@ -678,16 +678,714 @@
  result)
+%0A%0A    @attr('online')%0A    def test_is_complex_data(self):%0A        process = self.wps.describeprocess('helloworld')%0A        for input in process.dataInputs:%0A            nose.tools.ok_(is_complex_data(input) == False)%0A%0A    @attr('online')%0A    def test_parse_default(self):%0A        raise SkipTest%0A        process = self.wps.describeprocess('helloworld')%0A        for input in process.dataInputs:%0A            nose.tools.ok_(False, parse_default(input))%0A%0A    @attr('online')%0A    def test_parse_description(self):%0A        process = self.wps.describeprocess('helloworld')%0A        for input in process.dataInputs:%0A            result = parse_description(input)%0A            nose.tools.ok_(len(result), result)
 %0A       

update wpsparser unit tests