From: Razvan Deaconescu Date: Tue, 16 Aug 2011 17:34:28 +0000 (+0300) Subject: Add test skeleton to test_access_sqlite. X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=fda9599f18f8d81309707c571c9fb3c2231255d0;p=cs-p2p-next.git Add test skeleton to test_access_sqlite. --- diff --git a/ppf/db/tests/test_access_sqlite.py b/ppf/db/tests/test_access_sqlite.py index f619c7b..be558a8 100644 --- a/ppf/db/tests/test_access_sqlite.py +++ b/ppf/db/tests/test_access_sqlite.py @@ -106,10 +106,92 @@ class AccessTest(unittest.TestCase): cursor = conn.cursor() cursor.execute("""select * from btclients"""); for row in cursor: - print row + #print row + pass cursor.close() conn.close() + def test_connect(self): + self.assertEqual(True, True) + + def test_disconnect(self): + self.assertEqual(True, True) + + def test_get_cursor(self): + self.assertEqual(True, True) + + def test_get_connection(self): + self.assertEqual(True, True) + + def test_insert_swarms_row(self): + self.assertEqual(True, True) + + def test_insert_swarms(self): + self.assertEqual(True, True) + + def test_select_swarms(self): + self.assertEqual(True, True) + + def test_delete_swarms(self): + self.assertEqual(True, True) + + def test_insert_btclients_row(self): + self.assertEqual(True, True) + + def test_insert_btclients(self): + self.assertEqual(True, True) + + def test_select_btclients(self): + self.assertEqual(True, True) + + def test_select_btclients_by_name(self): + self.assertEqual(True, True) + + def test_select_btclients_id_by_name(self): + self.assertEqual(True, True) + + def test_insert_client_sessions_row(self): + self.assertEqual(True, True) + + def test_insert_client_sessions(self): + self.assertEqual(True, True) + + def test_select_client_sessions_by_id(self): + self.assertEqual(True, True) + + def test_select_client_sessions_by_swarm(self): + self.assertEqual(True, True) + + def test_delete_client_sessions_by_id(self): + self.assertEqual(True, True) + + def test_delete_client_sessions_by_swarm(self): + self.assertEqual(True, True) + + def test_insert_status_messages_row(self): + self.assertEqual(True, True) + + def test_insert_status_messages(self): + self.assertEqual(True, True) + + def test_select_status_messages(self): + self.assertEqual(True, True) + + def test_delete_status_messages(self): + self.assertEqual(True, True) + + def test_insert_verbose_messages_row(self): + self.assertEqual(True, True) + + def test_insert_verbose_messages(self): + self.assertEqual(True, True) + + def test_select_verbose_messages(self): + self.assertEqual(True, True) + + def test_delete_verbose_messages(self): + self.assertEqual(True, True) + # # if len(sys.argv) != 2: # print "Usage: python DatabaseAccess dbfile"