Created
October 5, 2011 04:15
-
-
Save jehoshua02/1263616 to your computer and use it in GitHub Desktop.
assert_raises
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nose.tools import * | |
from simplegame import lexicon | |
def test_parse_verb(): | |
word_list = lexicon.scan('the bear eat') | |
assert_raises(lexicon.ParseError, lexicon.parse_verb, *[word_list]) | |
assert_equal(lexicon.parse_verb('eat the bear'), ('verb', 'eat')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment