blob: d9147511c3b86baa5514e48887bdcc49bbd978e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import unittest
import base
class Suite(base.Base):
def test_1(self):
"""Test case 1"""
self.start()
pre = self.xpath('pre[1]')
self.assertEqual('line 1\nline 2', pre.text)
pre = self.xpath('pre[2]')
self.assertEqual('1 :: 2 :: 3 :: []', pre.text)
pre = self.xpath('pre[3]')
self.assertEqual('["hi","bye\\"","hehe"]', pre.text)
|