예제 #1
0
파일: tests.py 프로젝트: BlauFeuer/evennia
 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')))