Index: dashboard/dashboard/pinpoint/mann_whitney_u_test.py |
diff --git a/dashboard/dashboard/pinpoint/mann_whitney_u_test.py b/dashboard/dashboard/pinpoint/mann_whitney_u_test.py |
deleted file mode 100644 |
index c997b7144883e6f73f8f16669f3e2ed5d5766c21..0000000000000000000000000000000000000000 |
--- a/dashboard/dashboard/pinpoint/mann_whitney_u_test.py |
+++ /dev/null |
@@ -1,32 +0,0 @@ |
-# Copyright 2016 The Chromium Authors. All rights reserved. |
-# Use of this source code is governed by a BSD-style license that can be |
-# found in the LICENSE file. |
- |
-import unittest |
- |
-from dashboard.pinpoint import mann_whitney_u |
- |
- |
-class MannWhitneyUTest(unittest.TestCase): |
- def testBasic(self): |
- self.assertAlmostEqual( |
- mann_whitney_u.MannWhitneyU(range(10), range(20, 30)), |
- 0.00018267179110955002) |
- self.assertAlmostEqual( |
- mann_whitney_u.MannWhitneyU(range(5), range(10)), |
- 0.13986357686781267) |
- |
- def testDuplicateValues(self): |
- self.assertAlmostEqual(mann_whitney_u.MannWhitneyU([0] * 5, [1] * 5), |
- 0.0039767517097886512) |
- |
- def testSmallSamples(self): |
- self.assertEqual(mann_whitney_u.MannWhitneyU([0], [1]), 1.0) |
- |
- def testAllValuesIdentical(self): |
- with self.assertRaises(ValueError): |
- mann_whitney_u.MannWhitneyU([0] * 5, [0] * 5) |
- |
- |
-if __name__ == '__main__': |
- unittest.main() |