File: test_uid.py

package info (click to toggle)
odil 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,476 kB
  • sloc: cpp: 55,982; python: 3,947; javascript: 460; xml: 182; makefile: 99; sh: 36
file content (14 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest

import odil

class TestUID(unittest.TestCase):
    def test_uid_prefix(self):
        self.assertEqual(odil.uid_prefix, "1.2.826.0.1.3680043.9.5560")

    def test_uid_prefix(self):
        uid = odil.generate_uid()
        self.assertEqual(uid[:len(odil.uid_prefix)], odil.uid_prefix)

if __name__ == "__main__":
    unittest.main()