'Test calc.py\'s unique functionality of interpreting si \'suffixes\'.
For instance \'k\' stand for \'kilo-\' so \'1k\' should be 1,000'

def test_si_suffix(self):

    test_mapping = [('4.2%', 0.042), ('2.25k', 2250), ('8.3M', 8300000), ('9.9G', 9900000000.0), ('1.2T', 1200000000000.0), ('7.4c', 0.074), ('5.4m', 0.0054), ('8.7u', 8.7e-06), ('5.6n', 5.6e-09), ('4.2p', 4.2e-12)]
    for (expr, answer) in test_mapping:
        tolerance = (answer * 1e-06)
        fail_msg = "Failure    in    testing    suffix    '{0}':    '{1}'    was    not    {2}"
        fail_msg = fail_msg.format(expr[(-1)], expr, answer)
        self.assertAlmostEqual(calc.evaluator({}, {}, expr), answer, delta=tolerance, msg=fail_msg)
