예제 #1
0
파일: tests.py 프로젝트: aw1n/django-muecke
 def setUp(self):
     self.cc = CreditCard(
         type = "mastercard",
         owner = "John Doe",
         number = "4711",
         expiration_date_month = 8,
         expiration_date_year = 2012
     )
예제 #2
0
파일: tests.py 프로젝트: aw1n/django-muecke
class CreditCardTestCase(TestCase):
    def setUp(self):
        self.cc = CreditCard(
            type = "mastercard",
            owner = "John Doe",
            number = "4711",
            expiration_date_month = 8,
            expiration_date_year = 2012
        )

    def test_unicode(self):
        self.assertEquals(self.cc.__unicode__(), "%s / %s" % (self.cc.type, self.cc.owner))