A Room Allocation program
In this repository the building has 10 offices and 10 Living spaces, which are first of all pre-populated and then accepts an input text file with the names of those to be allocated and randomly allocates them to the offices and Living spaces. Those not allocated space are then returned.
RUN git clone https://github.com/NdagiStanley/room-allocation.git
to clone this repo
Create a virtual environment using virtualenv or virtualenvwrapper and do the following in it.
- Install DEPENDENCIES
pip install -r requirements.txt
- RUN
$ python sample.py
or$ python sample.py 'file'
'file' here should be in the parent directory - TEST
$ nosetests
- Check the COVERAGE of the tests
coverage run tests/test_building.py
andcoverage report
Copyright (c) 2016