Home | History | Annotate | Download | only in test

Lines Matching refs:SampleClass

30 class SampleClass:
40 >>> sc = SampleClass(3)
48 >>> print(SampleClass(12).get())
55 >>> print(SampleClass(12).double().get())
58 return SampleClass(self.val + self.val)
62 >>> print(SampleClass(-5).get())
69 >>> print(SampleClass.a_staticmethod(10))
77 >>> print(SampleClass.a_classmethod(10))
79 >>> print(SampleClass(0).a_classmethod(10))
86 >>> print(SampleClass(22).a_property)
92 >>> x = SampleClass.NestedClass(5)
99 >>> print(SampleClass.NestedClass().get())
104 return SampleClass.NestedClass(self.val*self.val)
487 >>> tests = finder.find(SampleClass)
490 3 SampleClass
491 3 SampleClass.NestedClass
492 1 SampleClass.NestedClass.__init__
493 1 SampleClass.__init__
494 2 SampleClass.a_classmethod
495 1 SampleClass.a_property
496 1 SampleClass.a_staticmethod
497 1 SampleClass.double
498 1 SampleClass.get
527 ... 'SampleClass': SampleClass,
545 3 some_module.SampleClass
546 3 some_module.SampleClass.NestedClass
547 1 some_module.SampleClass.NestedClass.__init__
548 1 some_module.SampleClass.__init__
549 2 some_module.SampleClass.a_classmethod
550 1 some_module.SampleClass
551 1 some_module.SampleClass.a_staticmethod
552 1 some_module.SampleClass.double
553 1 some_module.SampleClass.get
583 >>> tests = doctest.DocTestFinder().find(SampleClass)
586 3 SampleClass
587 3 SampleClass.NestedClass
588 1 SampleClass.NestedClass.__init__
589 1 SampleClass.__init__
590 2 SampleClass.a_classmethod
591 1 SampleClass.a_property
592 1 SampleClass.a_staticmethod
593 1 SampleClass.double
594 1 SampleClass.get
601 >>> tests = doctest.DocTestFinder(exclude_empty=False).find(SampleClass)
604 3 SampleClass
605 3 SampleClass.NestedClass
606 1 SampleClass.NestedClass.__init__
607 0 SampleClass.NestedClass.get
608 0 SampleClass.NestedClass.square
609 1 SampleClass.__init__
610 2 SampleClass.a_classmethod
611 1 SampleClass.a_property
612 1 SampleClass.a_staticmethod
613 1 SampleClass.double
614 1 SampleClass.get
621 >>> tests = doctest.DocTestFinder(recurse=False).find(SampleClass)
624 3 SampleClass
1813 >>> name = 'test.test_doctest.SampleClass.a_classmethod'
1815 print(SampleClass.a_classmethod(10))
1818 print(SampleClass(0).a_classmethod(10))