예제 #1
0
 def test_data_sync(self, mock_path):
     mock_path.return_value = True
     with patch.dict('os.environ', {'HOME': '../data'}):
         root_import = RootImportBase('root_dir',
                                      Uri('file:///image.tar.xz'))
     with raises(NotImplementedError):
         root_import.sync_data()
 def test_data_sync(self, mock_path):
     mock_path.return_value = True
     with patch.dict('os.environ', {'HOME': '../data'}):
         root_import = RootImportBase(
             'root_dir', Uri('file:///image.tar.xz')
         )
     root_import.sync_data()
예제 #3
0
 def test_data_sync(self, mock_path):
     mock_path.return_value = True
     root_import = RootImportBase('root_dir', Uri('file:///image.tar.xz'))
     root_import.sync_data()