def test_build(self): s = GreedyString("s", encoding="utf8") self.assertEqual(s.build(u"hello"), b"hello") s = GreedyString("s") self.assertEqual(s.build(b"hello"), b"hello")
def test_build(self): s = GreedyString("foo", encoding="utf8") self.assertEqual(s.build(six.u("hello")), six.b("hello"))
def test_build(self): s = GreedyString("foo", encoding="utf8") self.assertEqual(s.build(u("hello")), b"hello")