projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
B&W: New abilities.
[zzz-pokedex.git]
/
pokedex
/
tests
/
test_lookup.py
diff --git
a/pokedex/tests/test_lookup.py
b/pokedex/tests/test_lookup.py
index
25c3c8a
..
36f11a1
100644
(file)
--- a/
pokedex/tests/test_lookup.py
+++ b/
pokedex/tests/test_lookup.py
@@
-146,3
+146,8
@@
def test_random_lookup():
assert_equal(len(results), 1, u'Constrained random returns one result')
assert_equal(results[0].object.__tablename__, table_name,
u'Constrained random returns result from the right table')
assert_equal(len(results), 1, u'Constrained random returns one result')
assert_equal(results[0].object.__tablename__, table_name,
u'Constrained random returns result from the right table')
+
+def test_crash_empty_prefix():
+ """Searching for ':foo' used to crash, augh!"""
+ results = lookup.lookup(u'Eevee')
+ assert_equal(results[0].object.name, u'Eevee', u'Empty prefix dun crash')