Ejemplo n.º 1
0
def test_not_inside_if_dir_is_missing(dir_exists, user_exists):
    dir_exists.expects_call().returns(True)
    user_exists.expects_call().returns(False)
    assert not vagrant.inside()
Ejemplo n.º 2
0
def test_inside(dir_exists, user_exists):
    dir_exists.expects_call().returns(True)
    user_exists.expects_call().returns(True)
    assert vagrant.inside()
Ejemplo n.º 3
0
def test_inside_arguments(dir_exists, user_exists):
    dir_exists.expects_call().with_args("/vagrant").returns(True)
    user_exists.expects_call().with_args("vagrant")
    vagrant.inside()
Ejemplo n.º 4
0
def test_not_inside_if_dir_is_missing(dir_exists, user_exists):
    dir_exists.expects_call().returns(True)
    user_exists.expects_call().returns(False)
    assert not vagrant.inside()
Ejemplo n.º 5
0
def test_inside(dir_exists, user_exists):
    dir_exists.expects_call().returns(True)
    user_exists.expects_call().returns(True)
    assert vagrant.inside()
Ejemplo n.º 6
0
def test_inside_arguments(dir_exists, user_exists):
    dir_exists.expects_call().with_args("/vagrant").returns(True)
    user_exists.expects_call().with_args("vagrant")
    vagrant.inside()