コード例 #1
0
 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
コード例 #2
0
 def test_get_hosting_locations_not_implemented(self):
     distributor = FileDistributor()
     host_locations = distributor.get_hosting_locations(None, None)
     self.assertEquals(0, len(host_locations))
コード例 #3
0
ファイル: test_distributor.py プロジェクト: alanoe/pulp
 def test_get_hosting_locations_not_implemented(self):
     distributor = FileDistributor()
     host_locations = distributor.get_hosting_locations(None, None)
     self.assertEquals(0, len(host_locations))
コード例 #4
0
ファイル: test_distributor.py プロジェクト: alanoe/pulp
 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