provider_factory function test for TypeError

payments.provider_factory function raises a TypeError when module uses from __future__ import unicode_literals