diff options
| author | Bobby <[email protected]> | 2022-11-27 15:44:43 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-27 15:44:43 -0500 |
| commit | d02c725d5d5a6bbeb42cf703a4ac2116e2c45f2d (patch) | |
| tree | a1b0f101be583cacbfd7f36e4355de6bdeb43f38 /tests | |
| parent | 473c86e0ac00cc479401c40d05ad6cbc10d2cf0d (diff) | |
| download | edify-d02c725d5d5a6bbeb42cf703a4ac2116e2c45f2d.tar.xz edify-d02c725d5d5a6bbeb42cf703a4ac2116e2c45f2d.zip | |
added guid validator
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_guid.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_guid.py b/tests/test_guid.py new file mode 100644 index 0000000..bc0cb1a --- /dev/null +++ b/tests/test_guid.py @@ -0,0 +1,11 @@ +from edify.library import guid + +def test_valid_guids(): + guids = { + "6ba7b810-9dad-11d1-80b4-00c04fd430c8": True, + '{51d52cf1-83c9-4f02-b117-703ecb728b74}' : True, + '{51d52cf1-83c9-4f02-b117-703ecb728-b74}' : False + } + for guid_string, expectation in guids.items(): + assert guid(guid_string) == expectation + |
