Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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