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