Beispiel #1
0
def test_MirroredDirectory_found(test_machine: machine.Machine):
  """Test that a mirrored directory can be found."""
  d = test_machine.MirroredDirectory('foo')
  assert d.LocalExists()
Beispiel #2
0
def test_MirroredDirectory_not_found(test_machine: machine.Machine):
  """Test that a mirrored directory cannot be found."""
  with pytest.raises(LookupError) as e_ctx:
    test_machine.MirroredDirectory('not_found')
  assert str(e_ctx.value) == "Cannot find mirrored directory 'not_found'"
Beispiel #3
0
def test_Ryangosling_tv(ryangosling: machine.Machine):
    """Test that mirrored directory exists."""
    d = ryangosling.MirroredDirectory('tv')
    assert isinstance(d, mirrored_directory.MirroredDirectory)
    assert d.RemoteExists()
    assert d.LocalExists()