tests: Expand tests for querying by UUIDS with short forms
This commit is contained in:
committed by
Paul Beckingham
parent
9cc9567cf4
commit
11a0dc7290
22
test/uuid.t
22
test/uuid.t
@@ -140,6 +140,17 @@ class TestUUID(TestCase):
|
||||
code, out, err = self.t("12345678-1234-1234-1234-123456789012 export")
|
||||
self.assertIn('"description":"six"', out)
|
||||
|
||||
def test_numerical_short_uuid(self):
|
||||
"""Using numerical UUID in the short form"""
|
||||
# NOTE: Reported on TW-1636
|
||||
self.t("12345678 modify status:pending")
|
||||
|
||||
code, out, err = self.t("_get 12345678.status")
|
||||
self.assertIn("pending\n", out)
|
||||
|
||||
code, out, err = self.t("12345678 export")
|
||||
self.assertIn('"description":"six"', out)
|
||||
|
||||
def test_alpha_uuid(self):
|
||||
"""Using alphabetic UUID"""
|
||||
# NOTE: complement numerical only reported on TW-1636
|
||||
@@ -151,6 +162,17 @@ class TestUUID(TestCase):
|
||||
code, out, err = self.t("abcdefab-abcd-abcd-abcd-abcdefabcdef export")
|
||||
self.assertIn('"description":"seven"', out)
|
||||
|
||||
def test_alpha_short_uuid(self):
|
||||
"""Using alphabetic UUID in the short form"""
|
||||
# NOTE: complement numerical only reported on TW-1636
|
||||
self.t("abcdefab modify status:pending")
|
||||
|
||||
code, out, err = self.t("_get abcdefab.status")
|
||||
self.assertIn("pending\n", out)
|
||||
|
||||
code, out, err = self.t("abcdefab export")
|
||||
self.assertIn('"description":"seven"', out)
|
||||
|
||||
|
||||
class TestUUIDuplicates(TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user