1 from nose.tools import eq_
3 from .. import autovivifying
8 I am a little teapot short and stout. Here is my handle and here is my
9 spout. The red fox jumps over the lazy brown dog. She sells sea shells
11 """.replace(".", " ").split()
16 if word not in lame_counts:
19 lame_counts[word] += 1
22 awesome_counts = autovivifying.Dict( # Autovivifies entries with zero.
23 vivifier=lambda k: 0 # Useful for counting.
26 awesome_counts[word] += 1
28 eq_(lame_counts, awesome_counts)