From 919e7524d2ef60de15d555bf13479a2f90e3307e Mon Sep 17 00:00:00 2001 From: Luke Miller Date: Tue, 27 Apr 2021 01:00:49 -0400 Subject: [PATCH] starting to add some test cases --- modpol/tests/org_basic_test.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modpol/tests/org_basic_test.lua diff --git a/modpol/tests/org_basic_test.lua b/modpol/tests/org_basic_test.lua new file mode 100644 index 0000000..96e112d --- /dev/null +++ b/modpol/tests/org_basic_test.lua @@ -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') \ No newline at end of file