def test_copying(self): dd = DirectoryDestination(self.tmp_dir) with mock.patch('shutil.copy') as copy: dd.make_available(mock.sentinel.dummy_meta, mock.sentinel.dummy_path, just_built=True) copy.assert_called_once_with(mock.sentinel.dummy_path, self.tmp_dir)
def test_copying(self): dd = DirectoryDestination(self.tmp_dir) with mock.patch('shutil.copy') as copy: dd.make_available(mock.sentinel.dummy_meta, mock.sentinel.dummy_path, just_built=True, config=mock.sentinel.dummy_config) copy.assert_called_once_with(mock.sentinel.dummy_path, self.tmp_dir)
def test_not_copying(self): dd = DirectoryDestination(self.tmp_dir) dd.make_available(mock.sentinel.dummy_meta, mock.sentinel.dummy_path, just_built=False, config=mock.sentinel.dummy_config)
def test_not_copying(self): dd = DirectoryDestination(self.tmp_dir) dd.make_available(mock.sentinel.dummy_meta, mock.sentinel.dummy_path, just_built=False, config=mock.sentinel.dummy_config)