def test_reset_existing_demo_account(self): demo_user = utils.create_demo_account() # add documents utils.delete_demo_company() self.assertFalse(CustomUser.objects.filter(pk=demo_user.pk)) self.assertFalse(Company.objects.filter(pk=demo_user.company.pk)) self.assertEqual(EmailTemplate.objects.all().count(), 0)
def handle_noargs(self, **options): delete_demo_company() create_demo_account()