Exemple #1
0
	def test_should_only_delete_saved_dependencies_if_they_exist(self):
		mock_on(scanner.os.path).isfile.is_expected.with_(pickle_path).returning(False)
		mock_on(scanner.os).remove.is_not_expected
		scanner.reset()
Exemple #2
0
	def test_should_delete_dependency_information_on_reset(self):
		
		mock_on(scanner.os.path).isfile.is_expected.with_(pickle_path).returning(True)
		mock_on(scanner.os).remove.is_expected.with_(pickle_path)
		scanner.reset()
Exemple #3
0
	def test_should_only_delete_saved_dependencies_if_they_exist(self):
		expect(scanner.os.path).exists(pickle_path).and_return(False)
		expect(scanner.os).remove.never()
		scanner.reset()
Exemple #4
0
	def test_should_delete_dependency_information_on_reset(self):
		expect(scanner.os.path).exists(pickle_path).and_return(True)
		expect(scanner.os).remove(pickle_path)
		scanner.reset()
 def test_should_only_delete_saved_dependencies_if_they_exist(self):
     mock_on(scanner.os.path).isfile.is_expected.with_(
         pickle_path).returning(False)
     mock_on(scanner.os).remove.is_not_expected
     scanner.reset()
    def test_should_delete_dependency_information_on_reset(self):

        mock_on(scanner.os.path).isfile.is_expected.with_(
            pickle_path).returning(True)
        mock_on(scanner.os).remove.is_expected.with_(pickle_path)
        scanner.reset()