def tearDown(self):
        self.admin_user.delete()
        self.banned_user.delete()
        self.role_user.delete()

        Author.objects.all().delete()
        PrincipalRoleRelation.objects.all().delete()
        StateObjectRelation.objects.all().delete()

        delete_test_workflow()

        os.remove(self.photo_filename)
        connection.close()
 def tearDown(self):
     self.user.delete()
     delete_test_workflow()