Exemple #1
0
    def test_negative(self):
        # error case
        # on ubuntu 
        # jaoki@jaoki-ubuntu:~/coding/phd-docker/dcloud$ ls aaaaaa
        # ls: cannot access aaaaaa: No such file or directory

        retcode, stdout = cmdutil.execute(["ls", "aaaaaa"])
        assert retcode == 2
        assert stdout == ""
Exemple #2
0
 def test_positive(self):
     retcode, stdout = cmdutil.execute(["ls", "-laF", "/"])
     assert retcode == 0
     assert "home/" in stdout