Skip to content

Commit

Permalink
byte & str in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
mission-liao committed Nov 26, 2014
1 parent a7c5c3e commit 0d603d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyswagger/tests/v2_0/test_prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pyswagger.utils import jp_compose
import unittest
import datetime
import six


class SchemaTestCase(unittest.TestCase):
Expand Down Expand Up @@ -118,7 +119,7 @@ def test_byte(self):

bv = b._prim_("BBBBB")
self.assertEqual(str(bv), "BBBBB")
self.assertEqual(bv.to_json(), "QkJCQkI=")
self.assertEqual(bv.to_json(), six.b("QkJCQkI="))

def test_date(self):
""" test date """
Expand Down

0 comments on commit 0d603d9

Please sign in to comment.