def test_fetch(self): """ Tests if it retrieve data from an sqlite3 db (returns all rows, be careful!) """ self.assertFalse(sqlite3.fetch()) self.assertTrue( sqlite3.fetch("/root/test.db", "CREATE TABLE test(id INT, testdata TEXT);") )
def test_fetch(self): ''' Tests if it retrieve data from an sqlite3 db (returns all rows, be careful!) ''' self.assertFalse(sqlite3.fetch()) self.assertTrue(sqlite3.fetch ('/root/test.db', 'CREATE TABLE test(id INT, testdata TEXT);'))