Ignore:
Timestamp:
30/05/06 16:49:09 (14 years ago)
Author:
spascoe
Message:

A python module which provides a function to start the daemon can be
built using the setup.py script. This method of invoking the server
has been briefly tested but no test cases yet.

I've taken out the initialisation/finalisation hooks from the auth API because
we shouldn't need them now. They were written assuming the python interpretter
was going to be embedded within bbftpd, but I've inverted the embedding by
wrapping bbftpd.c:main in a python extension function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/test/test_bbftpd.py

    r1003 r1064  
    1414class ExtendedAPITestCase(unittest.TestCase): 
    1515    """Test the basic bbftp private authentication API with stub extensions. 
     16 
     17    This test case runs bbftpd without python embedding and checks the auth API 
     18    is being called correctly. 
    1619    """ 
    1720 
     
    5255            self.fail(e) 
    5356 
    54         self.assert_(self._findLines(['.*initialising private auth.*', '.*finalising private auth.*'], lines)) 
     57        self.assert_(self._findLines(['.*Starting bbftpd in background mode'], lines)) 
    5558 
    5659    def testDir(self): 
     
    207210        return True 
    208211 
     212 
    209213if __name__ == '__main__': 
    210214    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.