예제 #1
0
 def test_it_finds_mixed_case_bad_words(self):
     hashed = 'fUcK12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
예제 #2
0
 def test_it_fails_censorable_strings(self):
     hashed = 'fuck12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
예제 #3
0
 def test_it_passes_innocuous_strings(self):
     hashed = 'puppies and rainbows'
     assert shortener.is_clean(hashed)
예제 #4
0
 def test_it_finds_mixed_case_bad_words(self):
     hashed = 'fUcK12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
예제 #5
0
 def test_it_fails_censorable_strings(self):
     hashed = 'fuck12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
예제 #6
0
 def test_it_passes_innocuous_strings(self):
     hashed = 'puppies and rainbows'
     assert shortener.is_clean(hashed)