some class
This commit is contained in:
17
src/m/Parking.py
Normal file
17
src/m/Parking.py
Normal file
@ -0,0 +1,17 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Parking :
|
||||
def __init__(self, placesParNiv, nbNiv):
|
||||
self.__nbPlacesParNiveau = placesParNiv
|
||||
self.__prix = 10
|
||||
self.__nbNiveaux = nbNiv
|
||||
|
||||
def recherchePlace(self,voiture):
|
||||
pass
|
||||
|
||||
def nbPlacesLibresParNiveau(self, niveau):
|
||||
pass
|
||||
|
||||
def addAbonnement(self, Abonnement):
|
||||
pass
|
13
src/m/Place.py
Normal file
13
src/m/Place.py
Normal file
@ -0,0 +1,13 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Place :
|
||||
def __init__(self,numero,niveau,longueur,hauteur):
|
||||
self.__numero = numero
|
||||
self.__niveau = niveau
|
||||
self.__longueur = longueur
|
||||
self.__estLibre = True
|
||||
self.__hauteur = hauteur
|
||||
|
||||
def addPlacement(self, placement):
|
||||
pass
|
4
src/m/test/TestParking.py
Normal file
4
src/m/test/TestParking.py
Normal file
@ -0,0 +1,4 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
class TestParking :
|
||||
pass
|
@ -1,5 +1,5 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Camera:
|
||||
class TestPlace :
|
||||
pass
|
@ -1,12 +0,0 @@
|
||||
from src.m.camera import Camera
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
import nose
|
||||
class testCamera :
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
def testTailleMax(self):
|
||||
c = Camera()
|
||||
assert (c.capturerHauteur()>1.5)
|
Reference in New Issue
Block a user