From 40c472e3d59f79d8a436d5a53913363069cfea1f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 17 Jul 2015 22:58:45 -0400 Subject: [PATCH] Test: Added 'udas' and '_udas' command tests --- test/uda.t | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/uda.t b/test/uda.t index 160c34334..0afa4a559 100755 --- a/test/uda.t +++ b/test/uda.t @@ -47,6 +47,23 @@ class TestBaseUda(TestCase): self.t.config("report.uda.labels", "ID,Extra,Description") +class TestUdaCommand(TestBaseUda): + def setUp(self): + super(TestUdaCommand, self).setUp() + + def test_uda_command(self): + """The 'udas' command should list 'priority' and 'extra'""" + code, out, err = self.t("udas") + self.assertIn("priority", out) + self.assertIn("extra", out) + + def test_uda_helper_command(self): + """The '_udas' helper command should list 'priority' and 'extra'""" + code, out, err = self.t("_udas") + self.assertIn("priority", out) + self.assertIn("extra", out) + + class TestUdaDate(TestBaseUda): def setUp(self): super(TestUdaDate, self).setUp()