/usr/share/pyshared/Pyblosxom/tests/testrunner.py is in pyblosxom 1.5.3-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 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #######################################################################
# This file is part of Pyblosxom.
#
# Copyright (C) 2010-2011 by the Pyblosxom team. See AUTHORS.
#
# Pyblosxom is distributed under the MIT license. See the file
# LICENSE for distribution details.
#######################################################################
import unittest
import os
def get_suite():
names = os.listdir(os.path.dirname(__file__))
names = ["Pyblosxom.tests.%s" % m[:-3]
for m in names
if m.startswith("test_") and m.endswith(".py")]
suite = unittest.TestLoader().loadTestsFromNames(names)
return suite
test_suite = get_suite()
def main():
unittest.TextTestRunner().run(test_suite)
if __name__ == "__main__":
main()
|