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))
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))