# Path: kleborate/kaptive.py
# def confidence_meets_threshold(confidence, min_confidence):
#     """
#     Returns True if the confidence level meets or exceeds the minimum confidence level.
#     """
#     min_confidence = min_confidence.replace('_', ' ')
#     scores = {'None': 0, 'Low': 1, 'Good': 2, 'High': 3, 'Very high': 4, 'Perfect': 5}
#     return scores[confidence] >= scores[min_confidence]


import unittest
from kleborate.kaptive import confidence_meets_threshold
"""
Copyright 2020 Kat Holt
Copyright 2020 Ryan Wick (rrwick@gmail.com)
https://github.com/katholt/Kleborate/

This file is part of Kleborate. Kleborate is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version. Kleborate is distributed in
the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details. You should have received a copy of the GNU General Public License along with Kleborate. If
not, see <http://www.gnu.org/licenses/>.
"""




class TestKaptive(unittest.TestCase):

    def test_confidence_meets_threshold_01(self):

# Path: kleborate/kaptive.py
# def confidence_meets_threshold(confidence, min_confidence):
#     """
#     Returns True if the confidence level meets or exceeds the minimum confidence level.
#     """
#     min_confidence = min_confidence.replace('_', ' ')
#     scores = {'None': 0, 'Low': 1, 'Good': 2, 'High': 3, 'Very high': 4, 'Perfect': 5}
#     return scores[confidence] >= scores[min_confidence]


# Path: test/test_kaptive.py
import unittest
from kleborate.kaptive import confidence_meets_threshold

"""
Copyright 2020 Kat Holt
Copyright 2020 Ryan Wick (rrwick@gmail.com)
https://github.com/katholt/Kleborate/

This file is part of Kleborate. Kleborate is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version. Kleborate is distributed in
the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details. You should have received a copy of the GNU General Public License along with Kleborate. If
not, see <http://www.gnu.org/licenses/>.
"""




class TestKaptive(unittest.TestCase):

    def test_confidence_meets_threshold_01(self):

        self.assertTrue(confidence_meets_threshold('None', 'None'))