def test_call(self):
        # Prevents user error with nice message.
        try:
            self.db.foo()
        except TypeError as e:
            self.assertTrue(str(e) in 'no such method exists')
        else:
            self.fail('Expected TypeError')
dataset/ETHPy150Open mongodb/motor/test/tornado_tests/test_motor_collection.py/MotorCollectionTest.test_call/swapped operands of `in`