Пример #1
0
 def _make_multiple():
     from math import fabs
     from appspace import Patterns, Branch, class_patterns
     class helpers(Patterns): #@IgnorePep8
         square = 'math.sqrt'
         fabulous = fabs
         formit = 'math.ceil'
         class subhelpers(Branch): #@IgnorePep8
             misc = 'appspace.tests.apps.appconf'
     return class_patterns(helpers)
Пример #2
0
 def _make_multiple():
     from math import fabs
     from appspace import Patterns, class_patterns
     class helpers(Patterns): #@IgnorePep8
         square = 'math.sqrt'
         fabulous = fabs
         formit = 're.match'
         mrk = 'math.isinf'
         furf = 'math.isnan'
         mrnrf = 'math.exp'
     return class_patterns(helpers)
Пример #3
0
 def _make_multiple():
     from math import fabs, exp
     from appspace.keys import AppspaceKey
     from appspace import Patterns, Namespace, class_patterns
     class TestKey(AppspaceKey): #@IgnorePep8
         '''test key'''
     class helpers(Patterns):
         square = 'math.sqrt'
         fabulous = fabs
         formit = 'math.ceil'
         class subhelpers(Namespace): #@IgnorePep8
             key = TestKey
             mrk = 'math.isinf'
             furf = 'math.isnan'
             mrnrf = exp
     return class_patterns(helpers)