Test: Added dulicate verbosity test

This commit is contained in:
Paul Beckingham 2015-07-19 20:52:14 -04:00
parent e4b2750656
commit e3941b920a

View file

@ -62,6 +62,11 @@ class TestDuplication(TestCase):
code, out, err = self.t.runError("999 duplicate") code, out, err = self.t.runError("999 duplicate")
self.assertIn("No tasks specified.", err) self.assertIn("No tasks specified.", err)
def test_duplication_showing_uuid(self):
"""Verify duplicate can show uuid"""
code, out, err = self.t("1 duplicate rc.verbose:new-uuid")
self.assertRegexpMatches(out, "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")
class TestDuplication2(TestCase): class TestDuplication2(TestCase):
def setUp(self): def setUp(self):