async def METHOD_NAME(self, mock_connect, mock_update_endpoints):
    c = Controller()
    with self.assertRaises(TypeError):
        await c.connect(endpoint='0.1.2.3:4566')
    self.assertEqual(mock_connect.call_count, 0)