'Test delete_payment_method'

@patch('r2.lib.authorize.interaction.PayID.delete')
@patch('r2.lib.authorize.interaction.api.delete_payment_profile')
def test_delete_payment_method(self, delete_payment_profile, delete):

    delete_payment_method(self.user, Mock())
    self.assertEqual(delete_payment_profile.call_count, 1)
    self.assertEqual(delete.call_count, 1)
    delete.reset_mock()
    delete_payment_method(self.user, Mock())
    self.assertEqual(delete_payment_profile.call_count, 2)
    self.assertEqual(delete.call_count, 1)
