How do I write tests correctly using unittest?
I am trying to figure out how to write unit tests for functions that I have written in Python - here's the code written below: def num_buses(n): import math """ (int) -> int Precondition: n >= 0 Return the minimum number of buses required to transport n people. Each bus can hold 50 people. >>> num_buses(75) 2 """ bus = int() if(n>=0): bus = int(math.ceil(n/50.0)) return bus I am attempting to write test code but they are giving me fail results - here's code I started with: import a1 import unittest class TestNumBuses(unittest.TestCase): """ Test class for function a1.num_buses. """ def test