Exemple #1
0
	def test_new_rectangle_from_circle(self):
		circ = Circle(1 , 5, 3)
		circ_new_rectangle = circ.circle_new_circle_to_rectangle()

		self.assertTrue(circ_new_rectangle.x, circ.circle_max_x_position())
		self.assertTrue(circ_new_rectangle.y, circ.circle_max_y_position())
Exemple #2
0
	def test_max_x_coordinates_for_a_Circle(self):
		circ = Circle(2, 3 ,8)
		
		self.assertEquals(18, circ.circle_max_x_position())