Exemple #1
0
 def test_free(self):
     # Just a smoke test that we can serialize this correctly.
     self.create()
     self.app.update(premium_type=mkt.ADDON_FREE)
     res = AddonPaymentAccountSerializer(
         data={'addon': self.app.get_api_url(),
               'payment_account': self.payment_url})
     ok_(not res.is_valid())
Exemple #2
0
 def test_free(self):
     # Just a smoke test that we can serialize this correctly.
     self.create()
     self.app.update(premium_type=amo.ADDON_FREE)
     res = AddonPaymentAccountSerializer(self.payment)
     ok_(not res.is_valid())