def test_unknown_type():
    with pytest.raises(exc.ConvertationError):
        converters.string(type)
def test_unknown_encoding():
    with pytest.raises(exc.ConvertationError):
        converters.string('À')
def test_boolean_true():
    with pytest.raises(exc.ConvertationError):
        converters.string(True)
def test_boolean_false():
    with pytest.raises(exc.ConvertationError):
        converters.string(False)
def test_none():
    with pytest.raises(exc.ConvertationError):
        converters.string(None)
def test_positive_number_unicode_string_type():
    assert isinstance(converters.string(u'1'), unicode)
def test_positive_number_unicode_string():
    assert converters.string(u'1') == u'1'
def test_positive_number_string():
    assert converters.string('1') == u'1'
def test_zero():
    assert converters.string(0) == u'0'