| 1 |
from pytest import raises |
| 2 |
|
| 3 |
from kiwi.snapshot_manager.base import SnapshotManagerBase |
| 4 |
|
| 5 |
|
| 6 |
class TestSnapshotManagerBase: |
| 7 |
def setup(self): |
| 8 |
self.manager = SnapshotManagerBase( |
| 9 |
'/dev/device', 'root_dir', 'mountpoint', '@', None |
| 10 |
) |
| 11 |
|
| 12 |
def setup_method(self, cls): |
| 13 |
self.setup() |
| 14 |
|
| 15 |
def test_create_first_snapshot(self): |
| 16 |
with raises(NotImplementedError): |
| 17 |
self.manager.create_first_snapshot() |
| 18 |
|
| 19 |
def test_setup_first_snapshot(self): |
| 20 |
with raises(NotImplementedError): |
| 21 |
self.manager.setup_first_snapshot() |
| 22 |
|
| 23 |
def test_get_default_snapshot_name(self): |
| 24 |
with raises(NotImplementedError): |
| 25 |
self.manager.get_default_snapshot_name() |