Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/guppy/heapy/test
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
guppy
/
heapy
/
test
/
📁
..
📄
__init__.py
(47 B)
📄
__init__.pyc
(163 B)
📄
__init__.pyo
(163 B)
📄
support.py
(7.19 KB)
📄
support.pyc
(9.99 KB)
📄
support.pyo
(9.99 KB)
📄
test_Classifiers.py
(25.85 KB)
📄
test_Classifiers.pyc
(34.42 KB)
📄
test_Classifiers.pyo
(34.42 KB)
📄
test_ER.py
(9.19 KB)
📄
test_ER.pyc
(13.33 KB)
📄
test_ER.pyo
(13.27 KB)
📄
test_OutputHandling.py
(1.14 KB)
📄
test_OutputHandling.pyc
(3.05 KB)
📄
test_OutputHandling.pyo
(3.05 KB)
📄
test_Part.py
(4 KB)
📄
test_Part.pyc
(6.41 KB)
📄
test_Part.pyo
(6.41 KB)
📄
test_Path.py
(25.42 KB)
📄
test_Path.pyc
(33.06 KB)
📄
test_Path.pyo
(33.06 KB)
📄
test_RefPat.py
(16.01 KB)
📄
test_RefPat.pyc
(16.56 KB)
📄
test_RefPat.pyo
(16.56 KB)
📄
test_RetaGraph.py
(89 B)
📄
test_RetaGraph.pyc
(324 B)
📄
test_RetaGraph.pyo
(324 B)
📄
test_Spec.py
(358 B)
📄
test_Spec.pyc
(1.07 KB)
📄
test_Spec.pyo
(1.07 KB)
📄
test_UniSet.py
(1.01 KB)
📄
test_UniSet.pyc
(2.32 KB)
📄
test_UniSet.pyo
(2.32 KB)
📄
test_View.py
(5.98 KB)
📄
test_View.pyc
(9.28 KB)
📄
test_View.pyo
(9.28 KB)
📄
test_all.py
(562 B)
📄
test_all.pyc
(980 B)
📄
test_all.pyo
(980 B)
📄
test_dependencies.py
(262 B)
📄
test_dependencies.pyc
(524 B)
📄
test_dependencies.pyo
(524 B)
📄
test_heapyc.py
(12.38 KB)
📄
test_heapyc.pyc
(17.87 KB)
📄
test_heapyc.pyo
(15.67 KB)
📄
test_menuleak.py
(2.87 KB)
📄
test_menuleak.pyc
(3.75 KB)
📄
test_menuleak.pyo
(3.75 KB)
📄
test_sf.py
(460 B)
📄
test_sf.pyc
(681 B)
📄
test_sf.pyo
(681 B)
Editing: test_OutputHandling.py
from guppy.heapy.test import support class FirstCase(support.TestCase): def setUp(self): support.TestCase.setUp(self) self.OH = self.heapy.OutputHandling def test_1(self): class T: def __init__(self, test, numlines, get_num_lines=None, get_more_msg=None): mod = test.OH def get_line_iter(): for i in range(numlines): yield '%d'%i self.mod = mod self.more = mod.more_printer( self, get_line_iter = get_line_iter, max_top_lines = 4, max_more_lines = 3, get_num_lines = get_num_lines, get_more_msg=get_more_msg) def __str__(self): return self.more._oh_printer.get_str_of_top() self.aseq(str( T(self, 4) ), '0\n1\n2\n3') t = T(self,6, lambda :6) self.aseq(str(t), "0\n1\n2\n3\n<Lines 0..3 of 6. Type e.g. '_.more' for more.>") x = t.more self.aseq(str(x), '4\n5') self.aseq(str(x.top), "0\n1\n2\n3\n<Lines 0..3 of 6. Type e.g. '_.more' for more.>") t = T(self,6, get_more_msg = lambda f, t: '<%d more rows>'%(6-t)) self.aseq(str(t), '0\n1\n2\n3\n<3 more rows>') def test_main(debug = 0): support.run_unittest(FirstCase, debug) if __name__ == "__main__": test_main()
Upload File
Create Folder