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