commit be11569d8090e4d015819217141727f4aeccd3c2 Author: David Fifield david@bamsoftware.com Date: Sat Mar 2 01:12:35 2013 -0800
Add a test for presence of CHECK-BACK-IN. --- facilitator/facilitator-test | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/facilitator/facilitator-test b/facilitator/facilitator-test index fd12ebe..455aa3f 100755 --- a/facilitator/facilitator-test +++ b/facilitator/facilitator-test @@ -87,6 +87,12 @@ class FacilitatorTest(unittest.TestCase): reg = fac.get_reg(FACILITATOR_ADDR, self.IPV6_PROXY_ADDR) self.assertEqual(reg["client"], fac.format_addr(self.IPV6_CLIENT_ADDR))
+ def test_check_back_in(self): + """Test that facilitator responses contain a CHECK-BACK-IN key with a + numeric value.""" + reg = fac.get_reg(FACILITATOR_ADDR, self.IPV6_PROXY_ADDR) + self.assertGreater(int(reg["check-back-in"]), 0) + # def test_same_proxy(self): # """Test that the same proxy doesn't get the same client when asking # twice."""
tor-commits@lists.torproject.org