<s> from qitoolchain . feed import * <EOL> import qisys . error <EOL> from qisrc . test . conftest import git_server <EOL> import pytest <EOL> def test_is_url ( ) : <EOL> assert not is_url ( r"<STR_LIT>" ) <EOL> assert is_url ( "<STR_LIT>" ) <EOL> assert is_url ( "<STR_LIT>" ) <EOL> def test_parse_non_exising_path ( ) : <EOL> with pytest . raises ( qisys . error . Error ) as e : <EOL> tree_from_feed ( "<STR_LIT>" ) <EOL> assert "<STR_LIT>" in e . value . message <EOL> assert "<STR_LIT>" in e . value . message <EOL> def test_git ( git_server , feed ) : <EOL> git_server . create_repo ( "<STR_LIT>" ) <EOL> oss_xml = """<STR_LIT>""" <EOL> third_part_xml = """<STR_LIT>""" <EOL> full_xml = """<STR_LIT>""" <EOL> git_server . push_file ( "<STR_LIT>" , "<STR_LIT>" , oss_xml ) <EOL> git_server . push_file ( "<STR_LIT>" , "<STR_LIT>" , third_part_xml ) <EOL> git_server . push_file ( "<STR_LIT>" , "<STR_LIT>" , full_xml ) <EOL> git_url = git_server . get_repo ( "<STR_LIT>" ) . clone_url <EOL> parser = ToolchainFeedParser ( "<STR_LIT:foo>" ) <EOL> parser . parse ( git_url , name = "<STR_LIT>" , branch = "<STR_LIT>" ) <EOL> names = [ x . name for x in parser . packages ] <EOL> assert names == [ "<STR_LIT>" , "<STR_LIT>" ] </s>
