mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Another UUID validation test
This commit is contained in:
parent
f16ce91d45
commit
f04a6177ac
1 changed files with 7 additions and 0 deletions
|
@ -278,6 +278,13 @@ class TestImportValidate(TestCase):
|
|||
code, out, err = self.t.runError("import", input=j)
|
||||
self.assertIn("Not a valid UUID", err)
|
||||
|
||||
def test_import_invalid_uuid2(self):
|
||||
"""Verify invalid UUID is caught, part two"""
|
||||
# UUID is the right length, but with s/-/0/.
|
||||
j = '{"uuid":"a1a1a1a10a1a10a1a10a1a10a1a1a1a1a1a1", "description":"bad"}'
|
||||
code, out, err = self.t.runError("import", input=j)
|
||||
self.assertIn("Not a valid UUID", err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue