'Test the primary key operations'

def test_primary_key(self):

    db.create_table('test_pk', [('id', models.IntegerField(primary_key=True)), ('new_pkey', models.IntegerField()), ('eggs', models.IntegerField(unique=True))])
    db.execute_deferred_sql()
    db.delete_primary_key('test_pk')
    db.create_primary_key('test_pk', 'new_pkey')
    db.execute('INSERT    INTO    test_pk    (id,    new_pkey,    eggs)    VALUES    (1,    2,    3)')
    db.execute('INSERT    INTO    test_pk    (id,    new_pkey,    eggs)    VALUES    (1,    3,    4)')
    db.delete_table('test_pk')
