def METHOD_NAME(self):
    obj = Attribute()
    serializer = JsonSerializer(dict_factory=DictFactory.FILTER_NONE)
    actual = json.loads(serializer.render(obj))
    self.assertEqual("optional", actual["use"])