コード例 #1
0
    def setUp(self):

        self.test_pilot = Pilot()
        self.test_pilot.name = "Marco Merli"
        self.test_pilot.save()

        self.test_vehicle = Vehicle()
        self.test_vehicle.name = "F3"
        self.test_vehicle.save()

        self.test_raceway = Raceway()
        self.test_raceway.name = "Interlagos"
        self.test_raceway.save()
コード例 #2
0
class TestCaseUnit(TestCase):

    test_pilot = None
    test_vehicle = None
    test_raceway = None

    def setUp(self):

        self.test_pilot = Pilot()
        self.test_pilot.name = "Marco Merli"
        self.test_pilot.save()

        self.test_vehicle = Vehicle()
        self.test_vehicle.name = "F3"
        self.test_vehicle.save()

        self.test_raceway = Raceway()
        self.test_raceway.name = "Interlagos"
        self.test_raceway.save()
コード例 #3
0
ファイル: tests.py プロジェクト: yohji/racestat
class TestCaseUnit(TestCase):
	
	test_pilot = None
	test_vehicle = None
	test_raceway = None
	
	def setUp(self):
		
		self.test_pilot = Pilot()
		self.test_pilot.name = "Marco Merli"
		self.test_pilot.save()
		
		self.test_vehicle = Vehicle()
		self.test_vehicle.name = "F3"
		self.test_vehicle.save()
		
		self.test_raceway = Raceway()
		self.test_raceway.name = "Interlagos"
		self.test_raceway.save()
コード例 #4
0
ファイル: tests.py プロジェクト: yohji/racestat
	def setUp(self):
		
		self.test_pilot = Pilot()
		self.test_pilot.name = "Marco Merli"
		self.test_pilot.save()
		
		self.test_vehicle = Vehicle()
		self.test_vehicle.name = "F3"
		self.test_vehicle.save()
		
		self.test_raceway = Raceway()
		self.test_raceway.name = "Interlagos"
		self.test_raceway.save()