def test_fail(self, value, errstr): with pytest.raises((TypeError, ValueError)) as excinfo: Record._value_to_ascii(value, 'value') assert str(excinfo.value) == "ndef.record.Record value " + errstr
def test_fail(self, value, errstr): with pytest.raises((TypeError, ValueError)) as excinfo: Record._value_to_ascii(value, 'value') assert str(excinfo.value) == "ndef.record.Record value " + errstr
def test_pass(self, value): assert Record._value_to_ascii(value, 'value') == 'abc'
def test_pass(self, value): assert Record._value_to_ascii(value, 'value') == 'abc'