From: Katy Huff Date: Wed, 30 Jan 2013 14:54:27 +0000 (-0600) Subject: removes answers accidentally added. These were flotsam/jetsam from live coding in... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a8f5fa427abb3041cba3f9ba238a19ab4d8f665;p=swc-testing-nose.git removes answers accidentally added. These were flotsam/jetsam from live coding in the bootcamp. --- diff --git a/python/testing/test_mean.py b/python/testing/test_mean.py index b9715f4..44c3b7c 100644 --- a/python/testing/test_mean.py +++ b/python/testing/test_mean.py @@ -24,22 +24,3 @@ def test_floating_mean1(): obs = mean([1, 2]) exp = 1.5 assert_equal(obs, exp) - -def test_string(): - assert_raises(TypeError, mean, ["one", "two", "fortyeight"]) - -def test_inf() : - obs = mean([1,2,float("inf")]) - exp = float("inf") - assert_equal(obs, exp) - -def test_zero_elems() : - empty_list = [] - assert_raises(ZeroDivisionError, mean, empty_list) - - - - - - -