def setUp(self): config = Configuration.test() self.address = config.webServerAddress() self.port = config.webServerPort() self.webServerThread = Server(config) self.webServerThread.start()
def setUp(self): config = Configuration.test() self._cleanupTestDb(config) self.librarian = Librarian(config)
datetime.datetime.now(), 'No description, manual load', 'http://media.estateweb.com/PhotoServ/Default.aspx?a=657&i=1.jpg&r=1633045&l=4&h=235&w=351&st=&rt=1.2&ds=1<=6&t=0&resinfo=&ct=3'), Property('Remax', Price(475, 'week'), Address('Emperor\'s Gate', 'SW7'), 'http://www.remax-londoncentral.co.uk/Property/Residential/for-rent/London/Kensignton/Emperors-Gate/2424712.aspx', '2424712', datetime.datetime.now(), 'No description, manual load', 'resources/sorry_no_image.jpeg'), Property('LondonLivingHomes', Price(1738, 'month'), Address('Dawes Road, Fulham', 'SW6'), 'http://www.londonlivinghomes.co.uk/index.php?url=property&wci=xml&db=dezrez&wce=002419885', '002419885', datetime.datetime.now(), 'No description, manual load', 'http://data.dezrez.com/PictureResizer.ASP?PropertyID=2419885&PhotoID=1&AgentID=982&BranchID=1602&width=485&rotation=0'), Property('JohnDWood', Price(460, 'week'), Address('Ifield Road', 'SW10'), 'http://www.johndwood.co.uk/property-to-let/London-SW10-LON093109', 'LON093109', datetime.datetime.now(), 'No description, manual load', 'http://www.johndwood.co.uk/index.php?action=getthumbnail&filepath=aspasia/pictures/3728_000093109_IMG_00.jpg&width=230&height=150&quality=75&crop=0'), ] Librarian(Configuration.prod()).archiveProperties(properties)
def startDataAcquisition(): Loader(Configuration.prod()).loadAll()
def startWeb(): Server(Configuration.prod()).start()
def setUp(self): super(TestLoader, self).setUp() self.loader = Loader(Configuration.dummy())