def add_data_into_db(self, database, numberOfTuples):
        # create the test table
        cur = database.cursor()
        cur.execute("""
            CREATE TABLE TestTable(
                timestamp REAL,
                value     REAL,
                junk_one  REAL,
                junk_two  TEXT
            )
            """)
        database.commit()

        # initialize all required values
        timestamp = 0
        junk_two = ["test"]
        tuples = []
        append = tuples.append

        # create the tuples
        for item in xrange(numberOfTuples):
            timestamp += random.random()
            value     = random.random() * 1000
            junkOne   = random.random()
            junkTwo   = random.choice(junk_two)

            append([timestamp, value,junkOne, junkTwo])

        # insert the tuples into the database
        cur.executemany("""INSERT INTO TestTable VALUES (?,?,?,?)""", tuples)
        database.commit()
Inserts a numberOfTuples tuples into the given database.
dataset/ETHPy150Open T-002/pycast/pycast/tests/timeseriesdatabasetest.py/DatabaseConnectorTest.add_data_into_db