def METHOD_NAME(self):
    """
    Function for testing charts
    """
    with patch.object(REST, "_request", return_value=mock_data[0]):
        results = self.domodashboard.yield_dashboard_chart(MOCK_DASHBOARD)
        chart_list = []
        for result in results:
            if isinstance(result, Either) and result.right:
                chart_list.append(result.right)
        for _, (expected, original) in enumerate(zip(EXPECTED_CHARTS, chart_list)):
            self.assertEqual(expected, original)
    with patch.object(REST, "_request", return_value=mock_data[1]):
        result = self.domodashboard.domo_client.get_chart_details(
            MOCK_DASHBOARD.cardIds[0]
        )
        assert (
            self.domodashboard.domo_client.get_chart_details(
                MOCK_DASHBOARD.cardIds[0]
            )
            is None
        )
    with patch.object(REST, "_request", return_value=mock_data[2]):
        assert (
            self.domodashboard.domo_client.get_chart_details(
                MOCK_DASHBOARD.cardIds[0]
            )
            is None
        )