Skip to content

Commit

Permalink
Adicionado teste para verificação das contantes obrigatórias
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocerqueira committed Jul 2, 2011
1 parent 8468533 commit 1274cc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion django_pagseguro/tests/__init__.py
@@ -1,9 +1,15 @@
from django.test import TestCase
from django.utils import unittest

import django_pagseguro

from django_pagseguro.tests.signals import *
from django_pagseguro.tests.pagseguro import *
from django_pagseguro.tests.views import *

class ConfiguracoesDaApp(unittest.TestCase):

def test_cosntantes_no_settings(self):
from django.conf import settings
self.assertTrue(hasattr(settings, 'PAGSEGURO_EMAIL_COBRANCA'))
self.assertTrue(hasattr(settings, 'PAGSEGURO_TOKEN'))
self.assertTrue(hasattr(settings, 'PAGSEGURO_URL_FINAL'))

0 comments on commit 1274cc2

Please sign in to comment.