Exemple #1
0
    def test_init(self):
        _ = '''
		clean up and create a simple node
		'''
        cache_run_verbose(simple_job, self.DIR / 'root', 'ATG',
                          '/tmp/digit.txt')
        return
Exemple #2
0
    def test_http_job(self):
        if self.LEVEL < 1:
            return
            # from spiper._types import HttpResponseCheckLength

        tups = (http_job1, self.DIR / 'test_http_job')
        cache_run_verbose(*tups)
        res = cache_check_changed(*tups)
        assert res[0] == 0

        tups = (http_job2, self.DIR / 'test_http_job')
        res = cache_run_verbose(*tups)
        res = cache_check_changed(*tups)
        assert res[0] == 1
Exemple #3
0
 def test_tfa_error(self):
     f = lambda: cache_run_verbose(
         simple_job,
         self.DIR / 'root',
         'ATG',
     )
     self.assertRaises(spiper._types.TooFewArgumentsError, f)
Exemple #4
0
 def test_tma_error(self):
     f = lambda: cache_run_verbose(simple_job, self.DIR / 'root', 'ATG',
                                   '/tmp/digit.txt', '2333333random')
     self.assertRaises(spiper._types.TooManyArgumentsError, f)