/usr/lib/python2.7/dist-packages/asrun/unittest/090_devel.py is in code-aster-run 1.13.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path as osp
import unittest
from common import aster_version
from data import agla_export
import asrun
from asrun.run import AsRunFactory
from asrun.dev.routines import get_available_te, get_available_op, get_available_lc
class TestDevel(unittest.TestCase):
def test01_routines(self):
run = AsRunFactory()
bibfor = osp.join(run.get_version_path(aster_version), 'bibfor')
lte = get_available_te(bibfor)
lop = get_available_te(bibfor)
llc = get_available_te(bibfor)
assert len(lte) > 0
assert len(lop) > 0
assert len(llc) > 0
if __name__ == "__main__":
unittest.main()
|