Ejemplo n.º 1
0
	def test_that_it_returns_workflows_for_tags_only_keywords( self ):
		keyword_set = TestKeywordSet( [], [], ["xcode"], [], [])
		workflows = Analyzer.workflows_for_keywords( keyword_set,self.test_workflows )
		self.assertEqual(len(workflows),2)
		self.assertEqual(workflows,[self.test_xcodesetup,self.test_xcodetrouble])
Ejemplo n.º 2
0
	def test_that_it_returns_workflows_for_name_only_keywords( self ):
		keyword_set = TestKeywordSet( ["troubleshoot"], [], [], [], [])
		workflows = Analyzer.workflows_for_keywords( keyword_set,self.test_workflows )
		self.assertEqual(len(workflows),1)
		self.assertEqual(workflows,[self.test_xcodetrouble])