def test_gunning_fog(): f = open('tests/sample.txt', 'r') r = Ranalyzer(f.read()) f.close() assert_equal(r.gunning_fog(), 9.57)