add test for Explorer run_type_explorers
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								6f82aef704
							
						
					
				
			
			
				commit
				
					
						40971208f2
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -124,3 +124,10 @@ class ExplorerClassTestCase(test.CdistTestCase):
 | 
				
			||||||
        self.explorer.transfer_type_explorers(cdist_type)
 | 
					        self.explorer.transfer_type_explorers(cdist_type)
 | 
				
			||||||
        output = self.explorer.run_type_explorer('world', cdist_object)
 | 
					        output = self.explorer.run_type_explorer('world', cdist_object)
 | 
				
			||||||
        self.assertEqual(output, 'hello\n')
 | 
					        self.assertEqual(output, 'hello\n')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def test_run_type_explorers(self):
 | 
				
			||||||
 | 
					        cdist_type = core.Type(self.local.type_path, '__test_type')
 | 
				
			||||||
 | 
					        cdist_object = core.Object(cdist_type, self.local.object_path, 'whatever')
 | 
				
			||||||
 | 
					        cdist_object.create()
 | 
				
			||||||
 | 
					        self.explorer.run_type_explorers(cdist_object)
 | 
				
			||||||
 | 
					        self.assertEqual(cdist_object.explorers, {'world': 'hello'})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue