Home | History | Annotate | Download | only in test

Lines Matching refs:SampleClass

28 class SampleClass:
38 >>> sc = SampleClass(3)
46 >>> print SampleClass(12).get()
53 >>> print SampleClass(12).double().get()
56 return SampleClass(self.val + self.val)
60 >>> print SampleClass(-5).get()
67 >>> print SampleClass.a_staticmethod(10)
75 >>> print SampleClass.a_classmethod(10)
77 >>> print SampleClass(0).a_classmethod(10)
84 >>> print SampleClass(22).a_property
90 >>> x = SampleClass.NestedClass(5)
97 >>> print SampleClass.NestedClass().get()
102 return SampleClass.NestedClass(self.val*self.val)
484 >>> tests = finder.find(SampleClass)
487 3 SampleClass
488 3 SampleClass.NestedClass
489 1 SampleClass.NestedClass.__init__
490 1 SampleClass.__init__
491 2 SampleClass.a_classmethod
492 1 SampleClass.a_property
493 1 SampleClass.a_staticmethod
494 1 SampleClass.double
495 1 SampleClass.get
524 ... 'SampleClass': SampleClass,
542 3 some_module.SampleClass
543 3 some_module.SampleClass.NestedClass
544 1 some_module.SampleClass.NestedClass.__init__
545 1 some_module.SampleClass.__init__
546 2 some_module.SampleClass.a_classmethod
547 1 some_module.SampleClass.a_property
548 1 some_module.SampleClass.a_staticmethod
549 1 some_module.SampleClass.double
550 SampleClass.get
580 >>> tests = doctest.DocTestFinder().find(SampleClass)
583 3 SampleClass
584 3 SampleClass.NestedClass
585 1 SampleClass.NestedClass.__init__
586 1 SampleClass.__init__
587 2 SampleClass.a_classmethod
588 1 SampleClass.a_property
589 1 SampleClass.a_staticmethod
590 1 SampleClass.double
591 1 SampleClass.get
598 >>> tests = doctest.DocTestFinder(exclude_empty=False).find(SampleClass)
601 3 SampleClass
602 3 SampleClass.NestedClass
603 1 SampleClass.NestedClass.__init__
604 0 SampleClass.NestedClass.get
605 0 SampleClass.NestedClass.square
606 1 SampleClass.__init__
607 2 SampleClass.a_classmethod
608 1 SampleClass.a_property
609 1 SampleClass.a_staticmethod
610 1 SampleClass.double
611 1 SampleClass.get
618 >>> tests = doctest.DocTestFinder(recurse=False).find(SampleClass)
621 3 SampleClass
1729 >>> name = 'test.test_doctest.SampleClass.a_classmethod'
1731 print SampleClass.a_classmethod(10)
1734 print SampleClass(0).a_classmethod(10)