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()
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()
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()