Exemple #1
0
	def test_section_with_offset_inside_section(self):
		t = Track("Track1", self.n, up_prefix="A", down_prefix="A", up=0, down=5, joints=[2.5])
		sec = t.section_with_offset(3)
		self.assertEqual(sec.track, t)
		self.assertEqual(sec.up, 2.5)
		self.assertEqual(sec.down, 5)
Exemple #2
0
	def test_section_with_offset_joint(self):
		t = Track("Track1", self.n, up_prefix="A", down_prefix="A", up=0, down=5, joints=[2.5])
		self.assertEqual(t.section_with_offset(2.5), None)