Exemplo n.º 1
0
 def test_add_alphabet(self):
     rs = Rstr()
     rs.add_alphabet('evens', '02468')
     assert re.match('^[02468]{1,10}$', rs.evens())
Exemplo n.º 2
0
 def setUp(self):
     self.rs = Rstr()
Exemplo n.º 3
0
 def test_alphabet_at_instantiation(self):
     rs = Rstr(vowels='AEIOU')
     assert re.match('^[AEIOU]{1,10}$', rs.vowels())
Exemplo n.º 4
0
 def setUp(self):
     self.rs = Rstr(random.SystemRandom())
Exemplo n.º 5
0
 def setUp(self) -> None:
     self.rs = Rstr()
Exemplo n.º 6
0
 def test_add_alphabet(self) -> None:
     rs = Rstr()
     rs.add_alphabet('evens', '02468')
     assert_matches('^[02468]{1,10}$', rs.evens())
Exemplo n.º 7
0
 def test_alphabet_at_instantiation(self) -> None:
     rs = Rstr(vowels='AEIOU')
     assert_matches('^[AEIOU]{1,10}$', rs.vowels())