out of range for python 2
This commit is contained in:
@ -13,7 +13,7 @@ class TestZfsNode(unittest2.TestCase):
|
|||||||
def test_destroymissing(self):
|
def test_destroymissing(self):
|
||||||
|
|
||||||
#initial backup
|
#initial backup
|
||||||
with patch('time.strftime', return_value="test-10101111000000"): #1000 years in past
|
with patch('time.strftime', return_value="test-19101111000000"): #1000 years in past
|
||||||
self.assertFalse(ZfsAutobackup("test test_target1 --no-progress --verbose --no-holds".split(" ")).run())
|
self.assertFalse(ZfsAutobackup("test test_target1 --no-progress --verbose --no-holds".split(" ")).run())
|
||||||
|
|
||||||
with patch('time.strftime', return_value="test-20101111000000"): #far in past
|
with patch('time.strftime', return_value="test-20101111000000"): #far in past
|
||||||
@ -40,7 +40,7 @@ class TestZfsNode(unittest2.TestCase):
|
|||||||
|
|
||||||
print(buf.getvalue())
|
print(buf.getvalue())
|
||||||
#should have done the snapshot cleanup for destoy missing:
|
#should have done the snapshot cleanup for destoy missing:
|
||||||
self.assertIn("fs1@test-10101111000000: Destroying", buf.getvalue())
|
self.assertIn("fs1@test-19101111000000: Destroying", buf.getvalue())
|
||||||
|
|
||||||
self.assertIn("fs1: Destroy missing: Still has children here.", buf.getvalue())
|
self.assertIn("fs1: Destroy missing: Still has children here.", buf.getvalue())
|
||||||
|
|
||||||
@ -130,6 +130,6 @@ test_target1/test_source1
|
|||||||
test_target1/test_source2
|
test_target1/test_source2
|
||||||
test_target1/test_source2/fs2
|
test_target1/test_source2/fs2
|
||||||
test_target1/test_source2/fs2/sub
|
test_target1/test_source2/fs2/sub
|
||||||
test_target1/test_source2/fs2/sub@test-10101111000000
|
test_target1/test_source2/fs2/sub@test-19101111000000
|
||||||
test_target1/test_source2/fs2/sub@test-20101111000000
|
test_target1/test_source2/fs2/sub@test-20101111000000
|
||||||
""")
|
""")
|
||||||
|
|||||||
Reference in New Issue
Block a user