Closed sgissinger closed 3 years ago
I used the following to test and it seems to be good
expect({'bar': True}).to_not.have.key('foo') expect({'bar': True}).to.have.key('bar') expect({'bar': True, 'bor': 0}).to.not_have.key('foo') expect({'bar': True, 'bur': 'yop'}).to.have.key('bar') expect({'bar': True, 'bor': 0}).to.not_have.keys('foo', 'fuu') expect({'bar': True, 'bur': 'yop'}).to.have.keys('bar', 'bur') expect(lambda: expect({'bar': True, 'bor': 0}).to.have.key('foo')).to.raise_error(AssertionError) expect(lambda: expect({'bar': True, 'bur': 'yop'}).to.not_have.key('bur')).to.raise_error(AssertionError) expect(lambda: expect({'bar': True, 'bor': 0}).to.have.keys('foo', 'fuu')).to.raise_error(AssertionError) expect(lambda: expect({'bar': True, 'bor': 0}).to.have.keys('bar', 'fuu')).to.raise_error(AssertionError) expect(lambda: expect({'bar': True, 'bur': 'yop'}).to.not_have.keys('bar', 'bur')).to.raise_error(AssertionError)
Non-sense :) Will work with projet TU before submitting something for this bug
I used the following to test and it seems to be good