def test_submit_single_task(self): s = Submitter() s.guess_virtualenv() print(self.dir) ttt = TestTask(self.dir) s.tasks = [partial(ttt, 'foo')] s.StoreClass = self.STORE s.submit() time.sleep(15) ttt.validate('foo')
def test_invalid(self): tt = TestTask(self.dir) tt('foo') with self.assertRaises(AssertionError): tt.validate('bar')
def test_no_file(self): tt = TestTask(self.dir) with self.assertRaises(AssertionError): tt.validate('bar')
def test_sanity(self): tt = TestTask(self.dir) tt('foo') tt.validate('foo')