def test_repr(self): r = Request(MagicMock(), MagicMock()) s = r.__repr__() self.assertTrue(isinstance(s, str)) self.assertIn('id', s)