Modified Unit tests for XML change
This commit is contained in:
parent
f1abacf361
commit
68ec704cbc
@ -732,8 +732,9 @@ class TestContainerController(unittest.TestCase):
|
|||||||
environ={'REQUEST_METHOD': 'GET'})
|
environ={'REQUEST_METHOD': 'GET'})
|
||||||
resp = self.controller.GET(req)
|
resp = self.controller.GET(req)
|
||||||
self.assertEquals(resp.body, '<?xml version="1.0" encoding="UTF-8"?>'
|
self.assertEquals(resp.body, '<?xml version="1.0" encoding="UTF-8"?>'
|
||||||
'\n<container name="c"><subdir name="US-OK-" />'
|
'\n<container name="c"><subdir name="US-OK-"><name>US-OK-</name></subdir>'
|
||||||
'<subdir name="US-TX-" /><subdir name="US-UT-" /></container>')
|
'<subdir name="US-TX-"><name>US-TX-</name></subdir>'
|
||||||
|
'<subdir name="US-UT-"><name>US-UT-</name></subdir></container>')
|
||||||
|
|
||||||
def test_GET_path(self):
|
def test_GET_path(self):
|
||||||
req = Request.blank('/sda1/p/a/c', environ={'REQUEST_METHOD': 'PUT',
|
req = Request.blank('/sda1/p/a/c', environ={'REQUEST_METHOD': 'PUT',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user