Example #1
0
def test_ncname_pass():
    validator_inst = NCName()
    value = 'Test-NCName_0'
    actual = validator_inst.to_python(value)
    nose.tools.eq_(actual, value)
Example #2
0
def test_ncname_whitespace_fail():
    validator_inst = NCName()
    value = 'ns:Test-NCName 0'
    validator_inst.to_python(value)