def test_volts_p_over_i(self): p = 10 i = 2 correct_result = 5 assert(ohm.calc_voltage(p=p, i=i) == correct_result)
def test_volts(self): p = 12 r = 3 correct_result = 6 assert(ohm.calc_voltage(p=p, r =r) == correct_result)
def test_volts_i_times_r(self): i = 10 r = 20 correct_result = 200 assert(ohm.calc_voltage(i=i, r=r) == correct_result)