Skip to content

Instantly share code, notes, and snippets.

@jehoshua02
Created October 5, 2011 04:15
Show Gist options
  • Save jehoshua02/1263616 to your computer and use it in GitHub Desktop.
Save jehoshua02/1263616 to your computer and use it in GitHub Desktop.
assert_raises
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