[flashproxy/master] Add commented-out test descriptions.

commit e562a85c58649f5b3f60f25a3a1173063746aa94 Author: David Fifield <david@bamsoftware.com> Date: Sat Jul 7 07:55:01 2012 -0700 Add commented-out test descriptions. --- facilitator-test | 31 +++++++++++++++++++++++++++++++ flashproxy-client-test | 12 ++++++------ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/facilitator-test b/facilitator-test index 4e37dd1..b06f5d7 100755 --- a/facilitator-test +++ b/facilitator-test @@ -55,6 +55,37 @@ class FacilitatorTest(unittest.TestCase): except socket.error: pass +# def test_same_proxy(self): +# """Test that the same proxy doesn't get the same client when asking +# twice.""" +# self.fail() +# +# def test_num_clients(self): +# """Test that the same proxy can pick up up to five different clients but +# no more. Test that a proxy ceasing to handle a client allows the proxy +# to handle another, different client.""" +# self.fail() +# +# def test_num_proxies(self): +# """Test that a single client is handed out to five different proxies but +# no more. Test that a proxy ceasing to handle a client reduces its count +# so another proxy can handle it.""" +# self.fail() +# +# def test_proxy_timeout(self): +# """Test that a proxy ceasing to connect for some time period causes that +# proxy's clients to be unhandled by that proxy.""" +# self.fail() +# +# def test_localhost_only(self): +# """Test that the facilitator doesn't listen on any external +# addresses.""" +# self.fail() +# +# def test_hostname(self): +# """Test that the facilitator rejects hostnames.""" +# self.fail() + class ParseTransactionTest(unittest.TestCase): def test_empty_string(self): self.assertRaises(ValueError, fac.parse_transaction, "") diff --git a/flashproxy-client-test b/flashproxy-client-test index 2992bd0..527093c 100755 --- a/flashproxy-client-test +++ b/flashproxy-client-test @@ -222,12 +222,12 @@ class TestConnectionLimit(unittest.TestCase): def tearDown(self): self.p.terminate() - def test_remote_limit(self): - """Test that the client transport plugin limits the number of remote - connections that it will accept.""" - for i in range(5): - s = socket.create_connection(REMOTE_ADDRESS, 2) - self.assertRaises(socket.error, socket.create_connection, REMOTE_ADDRESS) +# def test_remote_limit(self): +# """Test that the client transport plugin limits the number of remote +# connections that it will accept.""" +# for i in range(5): +# s = socket.create_connection(REMOTE_ADDRESS, 2) +# self.assertRaises(socket.error, socket.create_connection, REMOTE_ADDRESS) if __name__ == "__main__": unittest.main()
participants (1)
-
dcf@torproject.org