def test_contact_mismatch(self):
        self.data['contact'] = self.create_contact()
        with self.assertRaises(ValidationError):
            Message.objects.create(**self.data)
Accept purchase and confirm with message
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/contrib/messagelog/tests/test_models.py/MessageLogModelTest.test_contact_mismatch--crossover with--dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/shopgui.py/Gui.accept_purchase