Example #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
Example #2
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
Example #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
Example #4
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