'Verify that the command raises an exception when run without a service
user, and that program UUIDs are not cached.'

@waffle.testutils.override_switch('populate-multitenant-programs', True)
def test_handle_missing_service_user(self):

    with self.assertRaises(Exception):
        call_command('cache_programs')
    cached_uuids = cache.get(SITE_PROGRAM_UUIDS_CACHE_KEY_TPL.format(domain=self.site_domain))
    self.assertEqual(cached_uuids, None)
