self.mock_requests.get.assert_called_with(url)
expected_content = self.mock_requests.get.return_value
self.assertEqual(content, expected_content)
How to Mock an HTTP request in a unit testing scenario in Python