aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/apps/test_index.py')
-rw-r--r--test/apps/test_index.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apps/test_index.py b/test/apps/test_index.py
index c3960b8..7f5be8e 100644
--- a/test/apps/test_index.py
+++ b/test/apps/test_index.py
@@ -23,6 +23,12 @@ from bsie.apps.index import main
## code ##
class TestIndex(unittest.TestCase):
+ def test_main_invalid(self):
+ outbuf = io.StringIO()
+ with contextlib.redirect_stdout(outbuf):
+ bsfs = main([os.path.join(os.path.dirname(__file__), 'inexistent-file.t')])
+ self.assertEqual(outbuf.getvalue().strip(), '')
+
def test_main(self):
bsfs = main([
'-r',