~tribaal/txaws/xss-hardening

« back to all changes in this revision

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

  • Committer: Christopher Glass
  • Date: 2013-08-20 07:46:01 UTC
  • Revision ID: christopher.glass@canonical.com-20130820074601-sot1v11nkzwmp1th
UseĀ asserIn/assertNotIn

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