/usr/share/pyshared/nwdiag/tests/utils.py is in python-nwdiag 1.0.0-1.
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 | # -*- coding: utf-8 -*-
import os
from nwdiag.builder import ScreenNodeBuilder
from nwdiag.parser import parse_file
from blockdiag.tests.utils import BuilderTestCase as BlockdiagBuilderTestCase
class BuilderTestCase(BlockdiagBuilderTestCase):
def build(self, filename):
basedir = os.path.dirname(__file__)
pathname = os.path.join(basedir, 'diagrams', filename)
return ScreenNodeBuilder.build(parse_file(pathname))
|