"""
------------------------------------------------------------------------------
--                                                                          --
--                      FEBRUARY 26 LECTURE EXAMPLES                        --
--                                                                          --
--                       F E B 2 6 _ T E S T S . P Y                        --
--                                                                          --
------------------------------------------------------------------------------
-- Jeremy D Keffer                                                          --
--                                                                          --
-- CISC106 011 Spring 2013                                                  --
--                                                                          --
------------------------------------------------------------------------------
-- This file contains unit tests for the functions we wrote in class on Feb --
-- 26.                                                                      --
--                                                                          --
------------------------------------------------------------------------------
"""

# This is a comment

from feb26 import *
import unittest
import math

class TestFeb26(unittest.TestCase):
    def test_monus(self):
        self.assertEqual(monus(6, 5), 1)
        self.assertEqual(monus(10, 5), 5)
        self.assertEqual(monus(5, 10), 0)

    def test_cable_pricer(self):
        self.assertEqual(cable_pricer(9), 32.00)
        self.assertEqual(cable_pricer(10), 32.00)
        self.assertEqual(cable_pricer(50), 117.50)
        self.assertEqual(cable_pricer(100), 180.00)
        self.assertEqual(cable_pricer(500), 525.00)
        
if __name__ == '__main__':
    try:
        unittest.main()
    except SystemExit:
        pass
