Пример #1
0
 def vol(self, request):
     with fake_volume("file", size=MB, format=request.param) as vol:
         yield vol
Пример #2
0
 def vol(self):
     with fake_volume('file') as vol:
         yield vol
Пример #3
0
 def test_prepare_illegal_volume_allowed(self):
     with fake_volume('file', legal=False) as vol:
         vol.prepare(allow_illegal=True)
         assert vol.getMetaParam(sc.LEGALITY) == sc.ILLEGAL_VOL
Пример #4
0
 def test_prepare_illegal_volume_fails(self):
     with fake_volume('file', legal=False) as vol:
         with pytest.raises(se.prepareIllegalVolumeError):
             vol.prepare()
Пример #5
0
 def vol(self, request):
     with fake_volume("file", size=MB, format=request.param) as vol:
         yield vol
Пример #6
0
 def vol(self):
     with fake_volume('file') as vol:
         yield vol