

def test_blocks_filter(self):
    result = friends_tags.blocks(self.user4)
    self.assertTrue(isinstance(result, dict))
    self.assertTrue(('applied' in result))
    self.assertEqual(len(result['applied']), 2)
    self.assertTrue((self.user1 in result['applied']))
    self.assertTrue((self.user3 in result['applied']))
    self.assertTrue(('received' in result))
    self.assertEqual(len(result['received']), 2)
    self.assertTrue((self.user1 in result['received']))
    self.assertTrue((self.user2 in result['received']))

dataset/ETHPy150Open muhuk/django-simple-friends/friends/tests.py BlocksFilterTestCase.test_blocks_filter/original