def test_raises_serialization_error_on_dump_error(self): self.assertRaises(SerializationError, TextSerializer().dumps, {})
def test_strings_are_left_untouched(self): self.assertEqual("你好", TextSerializer().dumps("你好"))