Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
improve codingstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Mar 20, 2016
1 parent d63f135 commit c14b91e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions buildtimetrend/test/tools_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,21 +218,27 @@ def test_file_is_newer(self):

# function should return false if both files
# were modified at the same time
self.assertFalse(file_is_newer(
constants.TEST_SAMPLE_TIMESTAMP_FILE,
constants.TEST_SAMPLE_TIMESTAMP_FILE)
self.assertFalse(
file_is_newer(
constants.TEST_SAMPLE_TIMESTAMP_FILE,
constants.TEST_SAMPLE_TIMESTAMP_FILE
)
)

# file 1 is newer than file 2
self.assertTrue(file_is_newer(
NEWER_FILE,
constants.TEST_SAMPLE_TIMESTAMP_FILE)
self.assertTrue(
file_is_newer(
NEWER_FILE,
constants.TEST_SAMPLE_TIMESTAMP_FILE
)
)

# file 1 is older than file 2
self.assertFalse(file_is_newer(
constants.TEST_SAMPLE_TIMESTAMP_FILE,
NEWER_FILE)
self.assertFalse(
file_is_newer(
constants.TEST_SAMPLE_TIMESTAMP_FILE,
NEWER_FILE
)
)

def test_is_dict(self):
Expand Down

0 comments on commit c14b91e

Please sign in to comment.