Enhance test to test timestamp output
This commit is contained in:
parent
26f63fd994
commit
5ec0710d26
1 changed files with 4 additions and 2 deletions
|
@ -83,8 +83,10 @@ class TestDosage(object):
|
||||||
with pytest.raises(SystemExit):
|
with pytest.raises(SystemExit):
|
||||||
cmd(option)
|
cmd(option)
|
||||||
|
|
||||||
def test_module_help(self):
|
def test_module_help(self, capfd):
|
||||||
cmd_ok("-m", "xkcd")
|
cmd_ok("-m", "-t", "xkcd")
|
||||||
|
out, err = capfd.readouterr()
|
||||||
|
assert re.match(r'([0-9][0-9]:){2}.. xkcd>', out)
|
||||||
|
|
||||||
def test_no_comics_specified(self):
|
def test_no_comics_specified(self):
|
||||||
cmd_err()
|
cmd_err()
|
||||||
|
|
Loading…
Reference in a new issue