Coverage for /home/delusionalinsanity/bbrepos/matyan/src/matyan/tests/base.py : 70%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
'internet_available_only', 'log_info', )
"""Log some useful info.""" return func
"""Inner.""" import simple_timer timer = simple_timer.Timer() # Start timer
timer.stop() # Stop timer
LOGGER.debug('done in %s seconds', timer.duration)
"""Check if internet is available.
Host: 8.8.8.8 (google-public-dns-a.google.com) OpenPort: 53/tcp Service: domain (DNS/TCP) """ except socket.error as ex: print(ex) return False
"""Inner.""" LOGGER.debug('\n\n%s', func.__name__) LOGGER.debug('============================') if func.__doc__: LOGGER.debug('""" %s """', func.__doc__.strip()) LOGGER.debug('----------------------------') LOGGER.debug("Skipping because no Internet connection available.") LOGGER.debug('\n++++++++++++++++++++++++++++') return None
|