Opened 12 years ago

Closed 12 years ago

#4649 closed enhancement (fixed)

[patch] [CLI] Add assertError and tiny fix

Reported by: wolfram Owned by: alex
Priority: high Milestone:
Component: TestFramework Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

1) This patch adds assertError() so you can also test for certain errors.

t.assertError(dojox.data.QueryReadStore.InvalidAttributeError, store, "getValue", [item, "NOT THERE"]);
t.assertError(dojox.data.QueryReadStore.InvalidItemError, store, "getValue", ["not an item", "NOT THERE"]);

2) fixed a comparison for undefined, use === for it

Attachments (1)

assertError.patch (1.6 KB) - added by wolfram 12 years ago.
add assertError()

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by wolfram

Attachment: assertError.patch added

add assertError()

comment:1 Changed 12 years ago by alex

Resolution: fixed
Status: newclosed

(In [10976]) merging patch from Wolfram to add an assertError to check for typed exceptions. Will need to extend/improve to match error strings. Fixes #4649

Note: See TracTickets for help on using tickets.