Exemple #1
0
 def test_no_files(self, osmock):
     """
     check that it doesn't find files
     """
     osmock.return_value = []
     camup.read_dir(self.SAVE_FOLDER)
     assert osmock.called is True
 def test_no_files(self,osmock):
     """
     check that it doesn't find files
     """
     osmock.return_value=[]
     camup.read_dir(self.SAVE_FOLDER)
     assert osmock.called is True
Exemple #3
0
 def test_with_files(self, osmock):
     """ check with a few files
     """
     osmock.return_value = ["foo", "bar"]
     camup.read_dir(self.SAVE_FOLDER)
     assert osmock.called is True
 def test_with_files(self,osmock):
     """ check with a few files
     """
     osmock.return_value=["foo","bar"]
     camup.read_dir(self.SAVE_FOLDER)
     assert osmock.called is True