def create_distributor_with_mocked_api_calls(self): distributor = FileDistributor() distributor.get_hosting_locations = Mock() distributor.get_hosting_locations.return_value = [ self.target_dir, ] distributor.post_repo_publish = Mock() return distributor
def test_get_hosting_locations_not_implemented(self): distributor = FileDistributor() host_locations = distributor.get_hosting_locations(None, None) self.assertEquals(0, len(host_locations))
def create_distributor_with_mocked_api_calls(self): distributor = FileDistributor() distributor.get_hosting_locations = Mock() distributor.get_hosting_locations.return_value = [self.target_dir, ] distributor.post_repo_publish = Mock() return distributor