summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig/TimeStampTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Sig/TimeStampTests.py')
-rw-r--r--src/engine/SCons/Sig/TimeStampTests.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/engine/SCons/Sig/TimeStampTests.py b/src/engine/SCons/Sig/TimeStampTests.py
index 1fca73f..49c5cfb 100644
--- a/src/engine/SCons/Sig/TimeStampTests.py
+++ b/src/engine/SCons/Sig/TimeStampTests.py
@@ -36,10 +36,10 @@ class my_obj:
"""
def __init__(self, value = 0):
- self.value = value
+ self.value = value
def get_signature(self):
- return self.value
+ return self.value
def get_timestamp(self):
return self.value
@@ -48,23 +48,23 @@ class my_obj:
class TimeStampTestCase(unittest.TestCase):
def test_current(self):
- """Test deciding if an object is up-to-date
+ """Test deciding if an object is up-to-date
- Simple comparison of different timestamp values.
- """
- o1 = my_obj(value = 111)
- assert not current(o1.get_signature(), 110)
- assert current(o1.get_signature(), 111)
- assert current(o1.get_signature(), 112)
+ Simple comparison of different timestamp values.
+ """
+ o1 = my_obj(value = 111)
+ assert not current(o1.get_signature(), 110)
+ assert current(o1.get_signature(), 111)
+ assert current(o1.get_signature(), 112)
def test_collect(self):
- """Test collecting a list of signatures into a new signature value
- into a new timestamp value.
- """
+ """Test collecting a list of signatures into a new signature value
+ into a new timestamp value.
+ """
- assert 111 == collect((111,))
- assert 222 == collect((111, 222))
- assert 333 == collect((333, 222, 111))
+ assert 111 == collect((111,))
+ assert 222 == collect((111, 222))
+ assert 333 == collect((333, 222, 111))
def test_signature(self):
"""Test generating a signature"""
@@ -81,4 +81,4 @@ class TimeStampTestCase(unittest.TestCase):
if __name__ == "__main__":
suite = unittest.makeSuite(TimeStampTestCase, 'test_')
if not unittest.TextTestRunner().run(suite).wasSuccessful():
- sys.exit(1)
+ sys.exit(1)