18 lines
461 B
Python
18 lines
461 B
Python
import pathlib
|
|
import sys
|
|
import unittest
|
|
|
|
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
|
|
|
from model_routing.ladder import LADDER
|
|
from model_routing.prices import PRICES
|
|
|
|
|
|
class Prices(unittest.TestCase):
|
|
def test_every_model_on_the_ladder_has_a_price_since_a_model_without_one_is_left_out_of_every_figure(self):
|
|
self.assertEqual(sorted({rung.model for rung in LADDER} - set(PRICES)), [])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|