~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/database/ftests/script_isolation.py

  • Committer: Stuart Bishop
  • Date: 2008-05-20 10:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6524.
  • Revision ID: stuart.bishop@canonical.com-20080520102756-i9fy22hh61vxglh8
Fix isolation tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
def check():
17
17
    cur = cursor()
18
 
    cur.execute("UPDATE Person SET password='bar' WHERE name='sabdfl'")
 
18
    cur.execute("UPDATE Person SET country=61 WHERE name='sabdfl'")
19
19
    cur.execute("SHOW transaction_isolation")
20
20
    print cur.fetchone()[0]
21
21
 
23
23
    txn.begin()
24
24
 
25
25
    cur = cursor()
26
 
    cur.execute("UPDATE Person SET password='baz' WHERE name='sabdfl'")
 
26
    cur.execute("UPDATE Person SET country=66 WHERE name='sabdfl'")
27
27
    cur.execute("SHOW transaction_isolation")
28
28
    print cur.fetchone()[0]
29
29