'Tests get_organization_by_short_name api when app is enabled.'

@patch.dict('django.conf.settings.FEATURES', {'ORGANIZATIONS_APP': True})
def test_get_organization_by_short_name_when_app_enabled(self):

    response = organizations_helpers.add_organization(organization_data=self.organization)
    self.assertIsNotNone(response['id'])
    response = organizations_helpers.get_organization_by_short_name(self.organization['short_name'])
    self.assertIsNotNone(response['id'])
    response = organizations_helpers.get_organization_by_short_name('non_existing')
    self.assertIsNone(response)
