Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #5
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()
Пример #6
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()