示例#1
0
    def test_finds_incomplete(self, capsys, chk_dirs):
        hrsp.check('chk')
        out, err = capsys.readouterr()

        dirs = chk_dirs

        assert ' - {} is NOT STARTED'.format(dirs[1]) in out.split('\n')
示例#2
0
    def test_finds_finished(self, capsys, chk_dirs):
        hrsp.check('chk')
        out, err = capsys.readouterr()

        dirs = chk_dirs

        assert ' - {} is FINISHED'.format(dirs[0]) in out.split('\n')
示例#3
0
    def test_finds_in_progress(self, capsys, chk_dirs):
        hrsp.check('chk')
        out, err = capsys.readouterr()

        dirs = chk_dirs

        assert ' - {} is IN PROGRESS'.format(dirs[2]) in out.split('\n')
示例#4
0
    def test_child_discovery(self, capsys, chk_dirs):
        hrsp.check('chk')
        out, err = capsys.readouterr()

        assert "Found 3 children" in out