def test_average_word_length( self ): ideal_average = 3 average = exercises.average_word_length( 'data/the-dream.md' ) self.assertEqual( average, ideal_average )