Ejemplo n.º 1
0
def test_match(composer_not_command, composer_not_command_one_of_this):
    assert match(Command('composer udpate',
                         stderr=composer_not_command), None)
    assert match(Command('composer pdate',
                         stderr=composer_not_command_one_of_this), None)
    assert not match(Command('ls update', stderr=composer_not_command),
                     None)
Ejemplo n.º 2
0
def test_match(composer_not_command, composer_not_command_one_of_this,
               composer_require_instead_of_install):
    assert match(Command('composer udpate', composer_not_command))
    assert match(Command('composer pdate', composer_not_command_one_of_this))
    assert match(
        Command('composer install package',
                composer_require_instead_of_install))
    assert not match(Command('ls update', composer_not_command))
def test_match(composer_not_command, composer_not_command_one_of_this):
    assert match(Command('composer udpate', stderr=composer_not_command))
    assert match(
        Command('composer pdate', stderr=composer_not_command_one_of_this))
    assert not match(Command('ls update', stderr=composer_not_command))
Ejemplo n.º 4
0
def test_match(command):
    assert match(command)
Ejemplo n.º 5
0
def test_match(composer_not_command, composer_not_command_one_of_this):
    assert match(Command('composer udpate', '', composer_not_command), None)
    assert match(
        Command('composer pdate', '', composer_not_command_one_of_this), None)
    assert not match(Command('ls update', '', composer_not_command), None)
Ejemplo n.º 6
0
def test_match(composer_not_command, composer_not_command_one_of_this):
    assert match(Command("composer udpate", composer_not_command))
    assert match(Command("composer pdate", composer_not_command_one_of_this))
    assert not match(Command("ls update", composer_not_command))