def test_check_type(self): with pytest.raises(TypeError): BasicElement(is_enabled='True')
def test_basic_element_parameter_is_enable_check(): with pytest.raises(TypeError, match=r".*must be bool.*"): BasicElement(name='DefaultwtjName', comments='Random Comment!', is_enable='True')
def test_positive(self): element = BasicElement(name='MyName') assert element.name == 'MyName'
def test_check_type(self): with pytest.raises(TypeError, match=r".*must be str.*"): BasicElement(name=847378)
def test_positive(self): element = BasicElement(is_enabled=True) assert element.is_enabled is True
def test_check_type2(self): with pytest.raises(TypeError): BasicElement(is_enabled=847378)
def test_basic_element_parameter_is_enable_check(): with pytest.raises(TypeError, match=r".*must be bool.*"): BasicElement(is_enable='True')