def METHOD_NAME(self, import_string_mock):
    func = settings.djstripe_settings.get_callback_function(
        "DJSTRIPE_TEST_CALLBACK"
    )
    self.assertEqual("ok", func())
    import_string_mock.assert_called_with("foo.valid_callback")