def testContainsObject(self):
        Position.objects.add_object(self.samplePosition, self.text1)
        
        self.assertTrue(Position.objects.contains_object(self.samplePosition, self.text1))
        self.assertFalse(Position.objects.contains_object(self.samplePosition, self.text2))
This test will ensure that contains_object works correctly
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/tests.py/PositionsTestCase.testContainsObject