mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-31 11:39:02 +01:00 
			
		
		
		
	Added a test for a missing name in the from_name method's tests (for the DataHandler class)
This commit is contained in:
		
					parent
					
						
							
								b7ae2c465d
							
						
					
				
			
			
				commit
				
					
						51feb0654c
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -35,3 +35,10 @@ class DataHandlerTestCase(unittest.TestCase): | |||
|         DataHandler.register_new_handler('test_varchar', Varchar) | ||||
|         self.assertEqual(DataHandler.from_name('test_varchar'), Varchar) | ||||
| 
 | ||||
|     def test_from_missing_name(self): | ||||
|         DataHandler.register_new_handler('test_varchar1', Varchar) | ||||
|         DataHandler.register_new_handler('test_varchar2', Varchar) | ||||
|         try: | ||||
|             DataHandler.from_name('test_varchar3') | ||||
|         except Exception as err: | ||||
|             self.assertEqual(NameError, type(err)) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Roland Haroutiounian
				Roland Haroutiounian