def test_uid_to_qid_20(self): uid = 20 qid_target = QID_UID_BASE + uid self.assertEqual(qid_target, qacls.uid_to_qid(uid))
def test_uid_to_qid_root_string(self): uid = '0' qid_target = QID_UID_BASE + int(uid) self.assertEqual(qid_target, qacls.uid_to_qid(uid))
def test_uid_to_qid_root(self): qid_target = QID_UID_BASE uid = 0 self.assertEqual(qid_target, qacls.uid_to_qid(uid))