def test_longest_word( self ): words = [ 'Sheena', 'leads', 'Shelia', 'needs' ] longest = exercises.longest_word( words ) self.assertEqual( longest, 6 )
def test_longest_word(self): self.assertEqual(exercises.longest_word(['googleplex', 'bike', 'pneumonoultramicroscopicsilicovolcanoconiosis', 'TeamLeada']), 'pneumonoultramicroscopicsilicovolcanoconiosis')