new_contents: from django.test import TestCase
  from django.contrib.auth.models import User, Group, Permission
  from django.apps import apps
  from django.contrib.contenttypes.models import ContentType
  class PermissionsTestCase(TestCase):
      group = None
      def setUp(self):
          User.objects.create(username="test-user1", password ="password1",is_superuser=False, is_active =True,is_staff=True)
          User.objects.create(username="test-user2", password ="password1",is_superuser=False, is_active =True,is_staff=True)
          User.objects.create(username="test-user3", password ="password1",is_superuser=True, is_active =True,is_staff=True)
          User.objects.create(username="test-user4", password ="password1",is_superuser=False, is_active =True,is_staff=False)
  
          mods = list(apps.get_app_config('organisation').get_models())
          grp = Group.objects.get_or_create(name='OIM Staff')
          self.group = grp[0]
  
          for model in mods:
              ct = ContentType.objects.get_for_model(model)
              perms = Permission.objects.filter(content_type = ct)
              self.group.permissions.set(perms)
  
  
      def test_in_group(self):
          ''' test user who is not a super user but is staff and in oim staff group, expected result True '''
          test_user1 = User.objects.get(username='test-user1');
          test_user2 = User.objects.get(username='test-user2');
          test_user3 = User.objects.get(username='test-user3');
          test_user4 = User.objects.get(username='test-user4');
  
          #add test_user1 to group
          test_user1.groups.add(self.group)
  
          self.assertEqual(test_user1.has_module_perms('organisation'),True) # in oim group
          self.assertEqual(test_user2.has_module_perms('organisation'),False) # staff not in group
          self.assertEqual(test_user3.has_module_perms('organisation'),True) # super user
          self.assertEqual(test_user4.has_module_perms('organisation'),False) # user who is not staff
          self.assertEqual(test_user1.has_module_perms('some_app'),False) # test functinality in another group
  
subject: add unit test to test the change #210