def test_all_wordlist_property(self): # Set Config plugin LocalFile._LocalFile__plugin_path = os.path.abspath(W_DIR) # Create plugin wordlists _create_plugin_info() # Clean and configure new store WordListLoader._WordListLoader__store = {} WordListLoader._WordListLoader__load_wordlists(W_DIR) try: assert WordListLoader.all_wordlists == ["test_wordlist.txt"] finally: _destroy_plugin_info()
def test_all_wordlist_property(self): # Set Config plugin LocalFile._LocalFile__plugin_path = os.path.abspath(W_DIR) # Create plugin wordlists _create_plugin_info() # Clean and configure new store WordListLoader._WordListLoader__store = {} WordListLoader._WordListLoader__load_wordlists(W_DIR) try: assert WordListLoader.all_wordlists == ["test_wordlist.txt"] finally: _destroy_plugin_info()
def test__load_wordlists_input(self): # Reload wordlist WordListLoader._WordListLoader__load_wordlists("../../wordlist") # Check assert len(WordListLoader._WordListLoader__store) != 0
def test__load_wordlists_input(self): # Reload wordlist WordListLoader._WordListLoader__load_wordlists("../../wordlist") # Check assert len(WordListLoader._WordListLoader__store) != 0