@patch("stripe.Account.retrieve", return_value={"currencies_supported": ["usd", "cad", "eur"]})
    def test_get_choices(self, stripe_account_retrieve_mock):

        currency_choices = get_supported_currency_choices(api_key)
        stripe_account_retrieve_mock.assert_called_once_with()
        self.assertGreaterEqual(len(currency_choices), 1, "Currency choices pull returned an empty list.")
        self.assertEqual(tuple, type(currency_choices[0]), "Currency choices are not tuples.")
        self.assertIn(("usd", "USD"), currency_choices, "USD not in currency choices.")
Simple test to test sure that at least one currency choice tuple is returned.
dataset/ETHPy150Open pydanny/dj-stripe/tests/test_utils.py/TestGetSupportedCurrencyChoices.test_get_choices