def test_titleize_name(self): self.assertEquals( Animal.create_cat('foo bar').name, 'Foo Bar', )
def test_shortcut_for_cat(self): self.assertEquals( Animal('Kitten', Animal.CAT), Animal.create_cat('Kitten') )