def METHOD_NAME(self):
    from dongtai_engine.tasks import update_agent_status
    user1 = User.objects.filter(pk=1).get()
    assert user1 is not None
    self.client.force_authenticate(user=user1)
    self.register_agent(name="test1")
    User(id=2, username="test", phone="123456789").save()
    user2 = User.objects.filter(pk=2).get()
    assert user2 is not None
    self.client.force_authenticate(user=user2)
    self.register_agent(name="test2")
    update_agent_status()