~ubuntu-branches/ubuntu/saucy/lxml/saucy-updates

« back to all changes in this revision

Viewing changes to src/lxml/tests/test_builder.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-27 22:14:53 UTC
  • mto: (2.1.34 experimental) (1.4.1)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20130127221453-2k7oc1crqc28802y
Tags: upstream-3.1~beta1
ImportĀ upstreamĀ versionĀ 3.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    def test_build_from_xpath_result(self):
22
22
        class StringSubclass(str): pass
23
23
        wrapped = E.b(StringSubclass('Hello'))
24
 
        self.assertEquals(_bytes('<b>Hello</b>'), etree.tostring(wrapped))
 
24
        self.assertEqual(_bytes('<b>Hello</b>'), etree.tostring(wrapped))
25
25
 
26
26
    def test_unknown_type_raises(self):
27
27
        class UnknownType(object):