def ExtractKeywordsFromGroup_KeywordAssignAndMiddle_test(): eq_(['foo', 'bar', 'zoo', 'goo'], syntax_parse._ExtractKeywordsFromGroup( syntax_parse.SyntaxGroup('', [ 'foo end=zoo((^^//)) transparent bar', 'zoo goo', ])))
def ExtractKeywordsFromGroup_KeywordMiddle_test(): eq_(['foo', 'bar', 'zoo', 'goo'], syntax_parse._ExtractKeywordsFromGroup( syntax_parse.SyntaxGroup('', [ 'foo oneline bar', 'zoo goo', ])))
def ExtractKeywordsFromGroup_Commas_test(): eq_(['foo', 'bar', 'zoo', 'goo'], syntax_parse._ExtractKeywordsFromGroup( syntax_parse.SyntaxGroup('', [ 'foo, bar,', 'zoo goo', ])))
def ExtractKeywordsFromGroup_KeywordStarts_test(): eq_(['foo', 'bar', 'zoo', 'goo'], syntax_parse._ExtractKeywordsFromGroup( syntax_parse.SyntaxGroup('', [ 'foo bar', 'transparent boo baa', 'zoo goo', ])))
def ExtractKeywordsFromGroup_WithLinksTo_test(): eq_(['foo', 'bar', 'zoo', 'goo'], syntax_parse._ExtractKeywordsFromGroup( syntax_parse.SyntaxGroup( '', ['foo bar', 'zoo goo', 'links to Statement'])))