From: Razvan Deaconescu Date: Fri, 19 Aug 2011 08:52:13 +0000 (+0300) Subject: ppf: Remove old commented code in test suite. X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=088e61c007bd1061dfcdefe9fa6e46757b3f2072;p=cs-p2p-next.git ppf: Remove old commented code in test suite. --- diff --git a/ppf/db/tests/test_access_sqlite.py b/ppf/db/tests/test_access_sqlite.py index ed4b67a..9f0795d 100644 --- a/ppf/db/tests/test_access_sqlite.py +++ b/ppf/db/tests/test_access_sqlite.py @@ -126,6 +126,7 @@ insert into verbose_messages(cs_id, timestamp, direction, peer_ip, '0', '3', '4', '13', '777'); """ + class AccessTest(unittest.TestCase): """ Test suite for SQLiteDatabaseAccess class. @@ -599,50 +600,6 @@ class AccessTest(unittest.TestCase): self.assertEqual(num_rows, self.expected_verbmsg_count) -# -# if len(sys.argv) != 2: -# print "Usage: python DatabaseAccess dbfile" -# sys.exit(2) -# -# dba = DatabaseAccess(sys.argv[1]) -# -# dba.connect() -# -# for t in [('DarkKnight', '123000', 'experiment', 'TVTorrents'), -# ('Fedora', '1024', 'experiment', 'local'), -# ('Pulp Fiction', '102400', 'streaming', 'isohunt'), -# ('Karaoke', 'anaaremere', 'streaming', 'local'), -# ]: -# dba.insert_swarms_row(t) -# -# for t in [('Tribler', 'Python', '1', '1'), -# ('libtorrent', 'C++', '1', '0'), -# ('Vuze', 'Java', '1', '0'), -# ('Transmission', 'C', 'asa', '0'), -# ]: -# dba.insert_btclients_row(t) -# -# for t in [('1', '2', 'Linux', '2.6.26', '512', '1500', '141.85.224.205', '50500', '512', '64', '2455125.02409722'), -# ('3', '4', 'Linux', '2.6.26', '512', '1500', '141.85.224.209', '40400', '512', '64', '2455125.03174769'), -# ]: -# dba.insert_client_sessions_row(t) -# -# for t in [('1', '2455128.10', '222', '0', '213', '56', '200', '300', '121.324'), -# ('6', '2455128.10', '222', '0', '213', '56', '200', '300', '121.324'), -# ]: -# dba.insert_status_messages_row(t) -# -# for t in [('1', '2455128.121295811', '0', '127.0.0.1', '1345', '0', '3', '4', '13', '777'), -# ('4', '2455128.121295811', '1', '127.0.0.1', '1345', '0', '3', '4', '13', '777'), -# ]: -# dba.insert_verbose_messages_row(t) -# -# dba.get_status() -# -# dba.select_btclient_by_name("Tribler") -# -# dba.disconnect() - if __name__ == "__main__": unittest.main()