Merge branch 'pylint'
[munter.git] / tests / test.py
1 #! /usr/bin/env python
2 # -*- coding: utf-8 -*-
3 """rudimentary test program for Munter.py"""
4 import munter
5
6 # positional args invocation
7 EST = munter.time_calc(3.2, 2300, 'average', 'uphill', 'imperial')
8 print("Time estimate (3.2 mi, +2300'): %s hours" % EST['time'])
9
10 # defaults with one override invocation
11 EST = munter.time_calc(4.5, 2650, fitness='slow')
12 print("Time estimate (4.5 mi, +2650, slow): %s hours" % EST['time'])