Пример #1
0
 def setUp(self):
     self.ismount = FakeIsMount()
     self.volume_of = VolumeOf(self.ismount, os.path.normpath)
Пример #2
0
def test_should_handle_relative_volumes():
    ismount = FakeIsMount()
    ismount.add_mount('fake-vol')
    assert ismount('fake-vol')
Пример #3
0
 def setUp(self):
     self.ismount = FakeIsMount()
Пример #4
0
 def setUp(self):
     self.ismount = FakeIsMount()
     self.ismount.add_mount('/fake-vol')
Пример #5
0
 def setUp(self):
     self.ismount = FakeIsMount()
     self.ismount.add_mount('/vol1')
     self.ismount.add_mount('/vol2')
Пример #6
0
def should_handle_relative_volumes():
    ismount = FakeIsMount()
    ismount.add_mount('fake-vol')
    assert_true(ismount('fake-vol'))
Пример #7
0
 def setUp(self):
     self.ismount = FakeIsMount()
     self.volume_of = VolumeOf(ismount=self.ismount)
     self.volume_of.abspath = os.path.normpath
Пример #8
0
def test_should_handle_relative_volumes():
    ismount = FakeIsMount(['fake-vol'])
    assert ismount.is_mount('fake-vol')
Пример #9
0
 def setUp(self):
     self.ismount = FakeIsMount(['/vol1', '/vol2'])
Пример #10
0
 def setUp(self):
     self.ismount = FakeIsMount(['/fake-vol'])