robber.py icon indicating copy to clipboard operation
robber.py copied to clipboard

unicode string should be treated as string

Open tiger-flying opened this issue 8 years ago • 0 comments

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.

tiger-flying avatar Apr 14 '16 04:04 tiger-flying