~david-goetz/swift/wal_again

« back to all changes in this revision

Viewing changes to test/unit/common/middleware/test_swift3.py

  • Committer: Chuck Thier
  • Date: 2011-05-05 21:02:08 UTC
  • mto: This revision was merged to the branch mainline in revision 287.
  • Revision ID: cthier@gmail.com-20110505210208-b4dbw0w62qo0e1rz
removed test that was incorrectly testing for a bad path

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
        code = dom.getElementsByTagName('Code')[0].childNodes[0].nodeValue
208
208
        self.assertEquals(code, 'InvalidArgument')
209
209
 
210
 
    def test_bad_path(self):
211
 
        req = Request.blank('/bucket/object/bad',
212
 
                            environ={'REQUEST_METHOD': 'GET'},
213
 
                            headers={'Authorization': 'AWS test:tester:hmac'})
214
 
        resp = self.app(req.environ, start_response)
215
 
        dom = xml.dom.minidom.parseString("".join(resp))
216
 
        self.assertEquals(dom.firstChild.nodeName, 'Error')
217
 
        code = dom.getElementsByTagName('Code')[0].childNodes[0].nodeValue
218
 
        self.assertEquals(code, 'InvalidURI')
219
 
 
220
210
    def test_bad_method(self):
221
211
        req = Request.blank('/',
222
212
                            environ={'REQUEST_METHOD': 'PUT'},