OpenQuizz
Une application de gestion des contenus pédagogiques
TestTypeChecker Class Reference
Inheritance diagram for TestTypeChecker:
Collaboration diagram for TestTypeChecker:

Public Member Functions

def test_is_type (self)
 
def test_is_unknown_type (self)
 
def test_checks_can_be_added_at_init (self)
 
def test_redefine_existing_type (self)
 
def test_remove (self)
 
def test_remove_unknown_type (self)
 
def test_redefine_many (self)
 
def test_remove_multiple (self)
 
def test_type_check_can_raise_key_error (self)
 

Member Function Documentation

◆ test_checks_can_be_added_at_init()

def test_checks_can_be_added_at_init (   self)

◆ test_is_type()

def test_is_type (   self)

◆ test_is_unknown_type()

def test_is_unknown_type (   self)

◆ test_redefine_existing_type()

def test_redefine_existing_type (   self)

◆ test_redefine_many()

def test_redefine_many (   self)

◆ test_remove()

def test_remove (   self)

◆ test_remove_multiple()

def test_remove_multiple (   self)

◆ test_remove_unknown_type()

def test_remove_unknown_type (   self)

◆ test_type_check_can_raise_key_error()

def test_type_check_can_raise_key_error (   self)
Make sure no one writes:

    try:
self._type_checkers[type](...)
    except KeyError:

ignoring the fact that the function itself can raise that.

The documentation for this class was generated from the following file: