~djfroofy/txaws/921421-completemultipart

« back to all changes in this revision

Viewing changes to txaws/tests/test_wsdl.py

  • Committer: Duncan McGreggor
  • Date: 2012-01-27 07:04:32 UTC
  • mfrom: (111.5.9 920302-python2.5-compat)
  • Revision ID: duncan@dreamhost.com-20120127070432-9ywtuw041cm5yh6y
Final missing chunk of Python 2.5 compatibility fixes. The others were
committed prematurely to trunk in r124 and r125.

Reviewed by: Stephon Striplin
Fixes: https://bugs.launchpad.net/txaws/+bug/920302

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        skip = "lxml is either not installed or broken on your system."
16
16
 
17
17
 
18
 
class NodeSchemaTest(WsdlBaseTestCase):
 
18
class NodeSchemaTestCase(WsdlBaseTestCase):
19
19
 
20
20
    def test_create_with_bad_tag(self):
21
21
        """
70
70
        self.assertEqual("<foo/>", etree.tostring(schema.dump(foo)))
71
71
 
72
72
 
73
 
class NodeItemTest(WsdlBaseTestCase):
 
73
class NodeItemTestCase(WsdlBaseTestCase):
74
74
 
75
75
    def test_get(self):
76
76
        """
281
281
        self.assertTrue(hasattr(foo, "bar"))
282
282
 
283
283
 
284
 
class SequenceSchemaTest(WsdlBaseTestCase):
 
284
class SequenceSchemaTestCase(WsdlBaseTestCase):
285
285
 
286
286
    def test_create_with_bad_tag(self):
287
287
        """
351
351
                         etree.tostring(schema.dump(foo)))
352
352
 
353
353
 
354
 
class SequenceItemTest(WsdlBaseTestCase):
 
354
class SequenceItemTestCase(WsdlBaseTestCase):
355
355
 
356
356
    def test_get(self):
357
357
        """
507
507
        self.assertEqual("egg1", item1.bar)
508
508
 
509
509
 
510
 
class WDSLParserTest(WsdlBaseTestCase):
 
510
class WDSLParserTestCase(WsdlBaseTestCase):
511
511
 
512
512
    def setUp(self):
513
 
        super(WDSLParserTest, self).setUp()
 
513
        super(WDSLParserTestCase, self).setUp()
514
514
        parser = WSDLParser()
515
515
        wsdl_dir = os.path.join(os.path.dirname(__file__), "../../wsdl")
516
516
        wsdl_path = os.path.join(wsdl_dir, "2009-11-30.ec2.wsdl")