Test: Merged bug.884.t into add.t

This commit is contained in:
Paul Beckingham 2015-07-12 16:40:39 -04:00
parent f0010013d3
commit c92ee148f6
2 changed files with 12 additions and 60 deletions

View file

@ -95,6 +95,18 @@ class TestAdd(TestCase):
self.assertIn("one 'two' three", out)
self.assertIn("four \"five\" six", out)
def test_extra_space_in_path(self):
"""Test that path-like args are preserved
Bug 884: Extra space in path name.
"""
self.t("add /one/two/three/")
self.t("add '/four/five/six/'")
code, out, err = self.t("ls")
self.assertIn("/one/two/three/", out)
self.assertIn("/four/five/six/", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner