def test_unicode_chars_dont_fail(self): self.assertEqual(TextField().coerce('😅'), '😅')
def test_text_field(self): self.assertEqual(TextField().coerce('foo'), 'foo') self.assertEqual(TextField().coerce(123), '123')
def test_unicode_chars_dont_fail(self): self.assertEqual(TextField().coerce('😅'), '😅')
def test_text_field(self): self.assertEqual(TextField().coerce('foo'), 'foo') self.assertEqual(TextField().coerce(123), '123')