Example #1
0
 def test_uid_to_qid_20(self):
     uid = 20
     qid_target = QID_UID_BASE + uid
     self.assertEqual(qid_target, qacls.uid_to_qid(uid))
Example #2
0
 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))
Example #3
0
 def test_uid_to_qid_root(self):
     qid_target = QID_UID_BASE
     uid = 0
     self.assertEqual(qid_target, qacls.uid_to_qid(uid))