Skip to content

Commit

Permalink
do it properly
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Nov 12, 2013
1 parent 8d63379 commit a2a6201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_integration.py
Expand Up @@ -244,14 +244,14 @@ class TestCheck(DemoBuildTest):
def test_check_links(self):
with cd(self.target_dir):
try:
main(['check', '-l'])
main.main(['check', '-l'])
except SystemExit as e:
self.assertEqual(e.code, 0)

def test_check_files(self):
with cd(self.target_dir):
try:
main(['check', '-f'])
main.main(['check', '-f'])
except SystemExit as e:
self.assertEqual(e.code, 0)

Expand All @@ -263,7 +263,7 @@ def test_check_links_fail(self):
with cd(self.target_dir):
os.unlink(os.path.join("output", "archive.html"))
try:
main(['check', '-l'])
main.main(['check', '-l'])
except SystemExit as e:
self.assertNotEqual(e.code, 0)

Expand All @@ -272,7 +272,7 @@ def test_check_files_fail(self):
with codecs.open(os.path.join("output", "foobar"), "wb+", "utf8") as outf:
outf.write("foo")
try:
main(['check', '-f'])
main.main(['check', '-f'])
except SystemExit as e:
self.assertNotEqual(e.code, 0)

Expand Down

0 comments on commit a2a6201

Please sign in to comment.