Skip to content

Commit b5c58d4

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent c407148 commit b5c58d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/db_test_base.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.23 2004-04-08 00:42:13 richard Exp $
18+
# $Id: db_test_base.py,v 1.24 2004-04-08 00:43:23 richard Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint
2121

@@ -1174,7 +1174,7 @@ def test_changeClassKey(self):
11741174
# confirm journal's ok
11751175
self.db.getjournal('a', aid)
11761176

1177-
def init_ml(self):
1177+
def init_amodml(self):
11781178
self.db = self.module.Database(config, 'admin')
11791179
a = self.module.Class(self.db, "a", name=String(),
11801180
fooz=Multilink('a'))
@@ -1188,14 +1188,14 @@ def test_makeNewMultilink(self):
11881188
self.db.commit(); self.db.close()
11891189

11901190
# add a multilink prop
1191-
self.init_ml()
1191+
self.init_amodml()
11921192
bid = self.db.a.create(name='bear', fooz=[aid])
11931193
self.assertEqual(self.db.a.find(fooz=aid), [bid])
11941194
self.assertEqual(self.db.a.lookup('apple'), aid)
11951195
self.db.commit(); self.db.close()
11961196

11971197
# check
1198-
self.init_ml()
1198+
self.init_amodml()
11991199
self.assertEqual(self.db.a.find(fooz=aid), [bid])
12001200
self.assertEqual(self.db.a.lookup('apple'), aid)
12011201
self.assertEqual(self.db.a.lookup('bear'), bid)
@@ -1206,7 +1206,7 @@ def test_makeNewMultilink(self):
12061206

12071207
def test_removeMultilink(self):
12081208
# add a multilink prop
1209-
self.init_ml()
1209+
self.init_amodml()
12101210
aid = self.db.a.create(name='apple')
12111211
bid = self.db.a.create(name='bear', fooz=[aid])
12121212
self.assertEqual(self.db.a.find(fooz=aid), [bid])
@@ -1224,9 +1224,9 @@ def test_removeMultilink(self):
12241224
self.db.getjournal('a', bid)
12251225

12261226
def test_removeClass(self):
1227-
self.init_ml()
1227+
self.init_ab()
12281228
aid = self.db.a.create(name='apple')
1229-
bid = self.db.b.create(name='bear', fooz=[aid])
1229+
bid = self.db.b.create(name='bear')
12301230
self.db.commit(); self.db.close()
12311231

12321232
# drop the b class

0 commit comments

Comments
 (0)