

def test_friendship_manager_query_methods(self):
    self.assertEqual(Friendship.objects.are_friends(self.user1, self.user2), True)
    self.assertEqual(Friendship.objects.are_friends(friends_of_user2.user1, self.user3), False)
    self.assertEqual(Friendship.objects.are_friends(self.user2, self.user3), False)
    friends_of_user1 = Friendship.objects.friends_of(self.user1)
    friends_of_user2 = Friendship.objects.friends_of(self.user2)
    friends_of_user3 = Friendship.objects.friends_of(self.user3)
    self.assertEqual(list(friends_of_user1), [self.user2])
    self.assertEqual(list(friends_of_user2), [self.user1])
    self.assertEqual(list(friends_of_user3), [])

dataset/ETHPy150Open muhuk/django-simple-friends/friends/tests.py FriendshipModelsTestCase.test_friendship_manager_query_methods/VarMisuse@42/57 `self`->`friends_of_user2`