~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/server/tests/test_schema.py

  • Committer: Alberto Donato
  • Date: 2013-08-14 12:10:05 UTC
  • Revision ID: alberto.donato@canonical.com-20130814121005-baq7k58fp3762py4
Implement parse(), not coerce() [trivial] [r=free.ekanayaka].

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        """
276
276
        parameter = UnicodeLine("Test")
277
277
        error = self.assertRaises(APIError, parameter.coerce, "Test\nError")
278
 
        self.assertIn(u"Can't contain newlines", error.message)
 
278
        self.assertIn(
 
279
            u"Invalid unicode line value Test\nError",
 
280
            error.message)
279
281
        self.assertEqual(400, error.status)
280
282
 
281
283