X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/heapy/test
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
guppy
/
heapy
/
test
/
ðŸ“
..
📄
__init__.py
(47 B)
ðŸ“
__pycache__
📄
support.py
(3.72 KB)
📄
test_Classifiers.py
(28.38 KB)
📄
test_ER.py
(12.56 KB)
📄
test_OutputHandling.py
(1.34 KB)
📄
test_Part.py
(10.15 KB)
📄
test_Path.py
(28.82 KB)
📄
test_RefPat.py
(16.75 KB)
📄
test_RetaGraph.py
(95 B)
📄
test_Spec.py
(351 B)
📄
test_UniSet.py
(1.21 KB)
📄
test_View.py
(7.99 KB)
📄
test_all.py
(682 B)
📄
test_dependencies.py
(214 B)
📄
test_gsl.py
(421 B)
📄
test_heapyc.py
(15.6 KB)
📄
test_menuleak.py
(3.12 KB)
📄
test_sf.py
(583 B)
Editing: test_UniSet.py
from guppy.heapy.test import support class FirstCase(support.TestCase): def setUp(self): support.TestCase.setUp(self) def test_1(self): asrt = self.assertTrue a = [] b = [] c = self.iso(a, b) asrt(len(c.nodes) == 2) asrt(a in c) asrt(b in c) asrt([] not in c) asrt(c not in c) d = self.idset(c.nodes) asrt(c.nodes == d.nodes) asrt(c == d) def test_2(self): # Test standard set operations H = self.idset e1 = [] e2 = {} e3 = () la = [], [e1], [e1, e2], [e1, e2, e3], [e2], [e2, e3], [e3] self.guppy.sets.test.test_set_operations( [H(x) for x in la], [H(x) for x in la], [H(x) for x in la]) def test_3(self): # Test out-reaching iso = self.iso a = [] b = [a] c = [b] self.View.root = c x = iso(b) self.assertTrue(x.referrers == iso(c)) self.aseq(x.referents, iso(a)) self.aseq(x.referents.referrers, x) self.aseq(x.dominos, iso(a, b)) def test_main(debug=False): support.run_unittest(FirstCase, debug) if __name__ == "__main__": test_main()
Upload File
Create Folder