Skip to content

unicode string should be treated as string #8

Description

@tiger-flying

I encouter a problem with the following code snippet(run in OSX):

from robber import expect
import json
abc=json.loads('{"a": "a string"}')

expect(abc['a']).to.be.a.string()

the above expect statement will generate an exception:
BadExpectation: u'Expected "a string" to be a string'

which does not act as expected in my opinion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions