Пример #1
0
 def test_dbref(self):
     dbref = self.obj2.dbref
     self.assertEquals(True, lockfuncs.dbref(self.obj2, None, '%s' % dbref))
     self.assertEquals(False, lockfuncs.id(self.obj2, None, '%s' % (dbref + '1')))
     dbref = self.account2.dbref
     self.assertEquals(True, lockfuncs.pdbref(self.account2, None, '%s' % dbref))
     self.assertEquals(False, lockfuncs.pid(self.account2, None, '%s' % (dbref + '1')))
Пример #2
0
 def test_dbref(self):
     dbref = self.obj2.dbref
     self.assertEqual(True, lockfuncs.dbref(self.obj2, None, "%s" % dbref))
     self.assertEqual(False, lockfuncs.id(self.obj2, None, "%s" % (dbref + "1")))
     dbref = self.account2.dbref
     self.assertEqual(True, lockfuncs.pdbref(self.account2, None, "%s" % dbref))
     self.assertEqual(False, lockfuncs.pid(self.account2, None, "%s" % (dbref + "1")))
Пример #3
0
 def test_dbref(self):
     dbref = self.obj2.dbref
     self.assertEquals(True, lockfuncs.dbref(self.obj2, None, '%s' % dbref))
     self.assertEquals(False,
                       lockfuncs.id(self.obj2, None, '%s' % (dbref + '1')))
     dbref = self.account2.dbref
     self.assertEquals(True,
                       lockfuncs.pdbref(self.account2, None, '%s' % dbref))
     self.assertEquals(
         False, lockfuncs.pid(self.account2, None, '%s' % (dbref + '1')))