def test_applies_to_route(self, data): rate, route, expect = data self.assertEqual(governor.applies_to(rate, [], route), expect)
def test_applies_to_method(self, data): rate, method, expect = data self.assertEqual(governor.applies_to(rate, method, ""), expect)