def test_eq_wrong_type(self): from psycopg2.extras import Range self.assertNotEqual(Range(10, 20), ())