def test_ai_examples_get_generated_examples_empty(self):
        examples = []
        mock_response = create_empty_http_response()

        with mock.patch('requests.get', return_value=(mock_response)):
            examples = get_generated_examples('RunTestAutomation')

            self.assertEqual(0, len(examples))
    def test_ai_examples_get_generated_examples_full(self):
        examples = []
        mock_response = create_valid_http_response()

        with mock.patch('requests.get', return_value=(mock_response)):
            examples = get_generated_examples('RunTestAutomation')

            self.assertEqual('RunTestAutomation', examples[0].short_summary)
            self.assertEqual('az find\n', examples[0].command)
            self.assertEqual('The title', examples[1].short_summary)
            self.assertEqual('az test\n', examples[1].command)