mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
21 lines
835 B
Python
21 lines
835 B
Python
from argenta.app import App
|
|
from argenta.app.exceptions import (InvalidDescriptionMessagePatternException,
|
|
NoRegisteredRoutersException)
|
|
|
|
import unittest
|
|
|
|
|
|
class TestApp(unittest.TestCase):
|
|
def test_set_invalid_description_message_pattern(self):
|
|
with self.assertRaises(InvalidDescriptionMessagePatternException):
|
|
App().set_description_message_pattern('Invalid description pattern')
|
|
|
|
def test_set_invalid_description_message_pattern2(self):
|
|
with self.assertRaises(InvalidDescriptionMessagePatternException):
|
|
App().set_description_message_pattern('Invalid {desription} description {comand} pattern')
|
|
|
|
def test_no_registered_router(self):
|
|
with self.assertRaises(NoRegisteredRoutersException):
|
|
App()._validate_number_of_routers()
|
|
|