starting to add some test cases
This commit is contained in:
		
							
								
								
									
										10
									
								
								modpol/tests/org_basic_test.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								modpol/tests/org_basic_test.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| dofile("../modpol.lua") | ||||
|  | ||||
| print('\nRemoving existing orgs') | ||||
| modpol.orgs.reset() | ||||
|  | ||||
| print('\nCreating an org called "test_org"') | ||||
| test_org = modpol.instance:add_org('test_org') | ||||
|  | ||||
| print('\nTrying to create an org with the same name') | ||||
| duplicate = modpol.instance:add_org('test_org') | ||||
		Reference in New Issue
	
	Block a user