Skip to content

unicode string should be treated as string #8

@tiger-flying

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.

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