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)
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))
def test_match(command): assert match(command)
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)
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))