Beispiel #1
0
def test_validator_work_2():
    assert validator(['1.1', '-', '1']) is None
Beispiel #2
0
def test_validator_work_3():
    assert validator(['0', '/', '0.1']) is None
Beispiel #3
0
def test_validator_work_1():
    assert validator(['0', 'foo', '1']) is None
Beispiel #4
0
def test_validator_work ():
    assert validator(['999', '-', '9']) == [999, '-', 9]
Beispiel #5
0
 def test_string3(self):
     self.assertFalse(validator("abbcegjk"))
Beispiel #6
0
 def test_string2(self):
     self.assertFalse(validator("abbceffg"))
Beispiel #7
0
 def test_string1(self):
     self.assertFalse(validator("hijklmmn"))