コード例 #1
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_finds_mixed_case_bad_words(self):
     hashed = 'fUcK12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
コード例 #2
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_fails_censorable_strings(self):
     hashed = 'fuck12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
コード例 #3
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_passes_innocuous_strings(self):
     hashed = 'puppies and rainbows'
     assert shortener.is_clean(hashed)
コード例 #4
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_finds_mixed_case_bad_words(self):
     hashed = 'fUcK12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
コード例 #5
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_fails_censorable_strings(self):
     hashed = 'fuck12qDSffagwa467MQagaRE7'
     assert not shortener.is_clean(hashed)
コード例 #6
0
ファイル: test_shortener.py プロジェクト: mpirnat/chiisai
 def test_it_passes_innocuous_strings(self):
     hashed = 'puppies and rainbows'
     assert shortener.is_clean(hashed)