예제 #1
0
파일: CardTest.py 프로젝트: elmore/sixthdev
    def test_checkdigits(self):
        """
        check the checker..
        """
        card = Card()
        assert card.checkdigits(self.GOODCARD) == 1, \
               "check of good card failed..."

        assert card.checkdigits(self.BADCARD) == 0, \
               "check of bad card failed to fail... :)"
예제 #2
0
파일: CardTest.py 프로젝트: souca/sixthdev
    def test_checkdigits(self):
        """
        check the checker..
        """
        card = Card()
        assert card.checkdigits(self.GOODCARD) == 1, \
               "check of good card failed..."

        assert card.checkdigits(self.BADCARD) == 0, \
               "check of bad card failed to fail... :)"
예제 #3
0
파일: CardTest.py 프로젝트: elmore/sixthdev
 def test_masked(self):
     card = Card()
     card.number = self.GOODCARD
     assert card.masked == 'xxxxxxxxxxxx1111', \
            "masking doesn't work: %s" % card.masked
예제 #4
0
파일: CardTest.py 프로젝트: souca/sixthdev
 def test_masked(self):
     card = Card()
     card.number = self.GOODCARD
     assert card.masked == 'xxxxxxxxxxxx1111', \
            "masking doesn't work: %s" % card.masked