| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import unittest | 5 import unittest |
| 6 | 6 |
| 7 import mock | 7 import mock |
| 8 | 8 |
| 9 from infra_libs import experiments | 9 from infra_libs import experiments |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 self.assertFalse(experiments.is_active_for_host('f2', 0)) | 37 self.assertFalse(experiments.is_active_for_host('f2', 0)) |
| 38 self.assertFalse(experiments.is_active_for_host('f3', 0)) | 38 self.assertFalse(experiments.is_active_for_host('f3', 0)) |
| 39 | 39 |
| 40 self.assertTrue(experiments.is_active_for_host('f1', 50)) | 40 self.assertTrue(experiments.is_active_for_host('f1', 50)) |
| 41 self.assertTrue(experiments.is_active_for_host('f2', 50)) | 41 self.assertTrue(experiments.is_active_for_host('f2', 50)) |
| 42 self.assertFalse(experiments.is_active_for_host('f3', 50)) | 42 self.assertFalse(experiments.is_active_for_host('f3', 50)) |
| 43 | 43 |
| 44 self.assertTrue(experiments.is_active_for_host('f1', 100)) | 44 self.assertTrue(experiments.is_active_for_host('f1', 100)) |
| 45 self.assertTrue(experiments.is_active_for_host('f2', 100)) | 45 self.assertTrue(experiments.is_active_for_host('f2', 100)) |
| 46 self.assertTrue(experiments.is_active_for_host('f3', 100)) | 46 self.assertTrue(experiments.is_active_for_host('f3', 100)) |
| OLD | NEW |