/usr/share/pyshared/pyrrd/testing/base.py is in python-pyrrd 0.1.0-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 | import tempfile
from unittest import TestCase
from pyrrd.backend.external import create
class RRDBaseTestCase(TestCase):
def setUp(self):
self.rrdfile = tempfile.NamedTemporaryFile()
self.filename = self.rrdfile.name
parameters = (
"--start 920804400 "
"DS:speed:COUNTER:600:-10.1:10.3 "
"RRA:AVERAGE:0.5:1:24 "
"RRA:AVERAGE:0.5:6:10")
create(self.filename, parameters)
|