Ejemplo n.º 1
0
 def test_booleans(self):
     self.assertEquals(True, lockfuncs.true(self.account2, self.obj1))
     self.assertEquals(True, lockfuncs.all(self.account2, self.obj1))
     self.assertEquals(False, lockfuncs.false(self.account2, self.obj1))
     self.assertEquals(False, lockfuncs.none(self.account2, self.obj1))
     self.assertEquals(True, lockfuncs.self(self.obj1, self.obj1))
     self.assertEquals(True, lockfuncs.self(self.account, self.account))
     self.assertEquals(False, lockfuncs.superuser(self.account, None))
Ejemplo n.º 2
0
 def test_booleans(self):
     self.assertEqual(True, lockfuncs.true(self.account2, self.obj1))
     self.assertEqual(True, lockfuncs.all(self.account2, self.obj1))
     self.assertEqual(False, lockfuncs.false(self.account2, self.obj1))
     self.assertEqual(False, lockfuncs.none(self.account2, self.obj1))
     self.assertEqual(True, lockfuncs.self(self.obj1, self.obj1))
     self.assertEqual(True, lockfuncs.self(self.account, self.account))
     self.assertEqual(False, lockfuncs.superuser(self.account, None))