
import pausable_unittest
import pausable_unittest.dummypauser

import time


class SampleTest(pausable_unittest.TestCase):
    def test_sample1(self):
        for x in range(2):
            start = time.time()
            self.reboot()
            end = time.time()
            self.assertTrue(start + 1 < end, "start should be less than end")

    def test_sample2(self):
        start = time.time()
        self.shutdown()
        end = time.time()
        self.assertTrue(start + 1 < end, "start should be less than end")

if __name__ == "__main__":
    pausable_unittest.main(pausable_unittest.dummypauser.Pauser())



import pausable_unittest
import pausable_unittest.dummypauser

import time


class SampleTest(pausable_unittest.TestCase):
    def test_sample1(self):
        for x in range(2):
            start = time.time()
            self.reboot()
            end = time.time()
            self.assertTrue(start + 1 < end, "start should be less than end")

    def test_sample2(self):
        start = time.time()
        self.shutdown()
        end = time.time()
        self.assertTrue(start + 1 < end, "start should be less than end")

if __name__ == "__main__":
    pausable_unittest.main(pausable_unittest.dummypauser.Pauser())

