# Now the agreement exists in our DB, but is not active.
self.assertEqual([b.active for b in BillingAgreement.objects.all()], [False])
with patch('paypalrestsdk.BillingAgreement', Mock(
find=Mock(return_value=Mock(state='Mocked')))):
# Now the agreement exists in our DB, but is not active.
self.assertEqual([b.active for b in BillingAgreement.objects.all()], [False])
with patch('paypalrestsdk.BillingAgreement', Mock(
find=Mock(return_value=Mock(state='Mocked')))):