summaryrefslogtreecommitdiff
path: root/cmdtestlib_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-17 20:50:15 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-17 20:50:15 +0000
commit21b98d7dbb548cad9cd8783c10665718bdcb3444 (patch)
treec51b598e687225d952eddb10cceb4993f6530358 /cmdtestlib_tests.py
parenta657020d4e208ab37c18277f75cb0578f34e3ce0 (diff)
downloadcmdtest-21b98d7dbb548cad9cd8783c10665718bdcb3444.tar.gz
remove --command / -c option and $COMMAND and foo.args
Diffstat (limited to 'cmdtestlib_tests.py')
-rw-r--r--cmdtestlib_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmdtestlib_tests.py b/cmdtestlib_tests.py
index 90318b6..a49cdad 100644
--- a/cmdtestlib_tests.py
+++ b/cmdtestlib_tests.py
@@ -42,11 +42,11 @@ class TestDirTests(unittest.TestCase):
def test_finds_tests(self):
td = TestDir()
- td.scan('tests', filenames=['foo.args'])
+ td.scan('tests', filenames=['foo.script'])
self.assertEqual(len(td.tests), 1)
test = td.tests[0]
self.assertEqual(test.name, 'foo')
- self.assertEqual(test.args, 'tests/foo.args')
+ self.assertEqual(test.script, 'tests/foo.script')
self.assertEqual(test.stdin, None)
def test_finds_no_prefixes_when_there_are_none(self):
@@ -59,6 +59,6 @@ class TestDirTests(unittest.TestCase):
def test_finds_two_prefixes(self):
td = TestDir()
- self.assertEqual(td.find_prefixes(['setup', 'foo.setup', 'bar.args']),
+ self.assertEqual(td.find_prefixes(['setup', 'foo.setup', 'bar.script']),
['bar', 'foo'])