Test: Added 'sort:none' test
This commit is contained in:
@@ -249,6 +249,21 @@ class TestBug438(TestCase):
|
||||
}
|
||||
|
||||
|
||||
class TestSortNone(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_sort_none(self):
|
||||
"""Verify that 'sort:none' removes all sorting"""
|
||||
self.t("add one")
|
||||
self.t("add two")
|
||||
self.t("add three")
|
||||
code, out, err = self.t("_get 1.uuid 2.uuid 3.uuid")
|
||||
uuid1, uuid2, uuid3 = out.strip().split(' ')
|
||||
code, out, err = self.t("%s %s %s list rc.report.list.sort:none" % (uuid2, uuid3, uuid1))
|
||||
self.assertRegexpMatches(out, ' 2 two.+\n 3 three.+\n 1 one')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
Reference in New Issue
Block a user