예제 #1
0
    def test_good_names(self):
        data = [
            ('ana', True),
            ('rlr', True),
            ('anal', False),
        ]

        for name, expected in data:
            eq_(username_allowed(name), expected)
예제 #2
0
    def test_good_names(self):
        data = [
            ('ana', True),
            ('rlr', True),
            ('anal', False),
        ]

        for name, expected in data:
            eq_(username_allowed(name), expected)
예제 #3
0
파일: test_forms.py 프로젝트: zu83/kitsune
    def test_good_names(self):
        data = [
            ("ana", True),
            ("rlr", True),
            ("anal", False),
        ]

        for name, expected in data:
            eq_(username_allowed(name), expected)
예제 #4
0
    def test_good_names(self):
        data = [("ana", True), ("rlr", True), ("anal", False)]

        for name, expected in data:
            eq_(username_allowed(name), expected)