Example #1
0
	def test_power_r_times_i_squared(self):
		r = 2
		i = 3
		correct_result = 18
		assert(ohm.calc_power(r=r, i=i) == correct_result)
Example #2
0
	def test_power_e_times_i(self):
		e = 5
		i = 3
		correct_result = 15
		assert(ohm.calc_power(e=e, i=i) == correct_result)
Example #3
0
	def test_power_e_squared_over_r(self):
		e = 4
		r = 2
		correct_result = 8
		assert(ohm.calc_power(e=e, r=r) == correct_result)