def mobile_test(f):
 @wraps(f)
 def wrapper(self, *args, **kw):
  MobileTest._mobile_init(self)
  return f(self, *args, **kw)
 return wrapper

def mobile_test ( f ) : @ wraps ( f ) def wrapper ( self , * args , ** kw ) : MobileTest . _mobile_init ( self ) return f ( self , * args , ** kw ) return wrapper
test decorator for hitting mobile views .