def test_de_json_all(self, client): json_dict = {'id_': self.id, 'name': self.name} label = Label.de_json(json_dict, client) assert label.id == self.id assert label.name == self.name
def test_de_json_none(self, client): assert Label.de_json({}, client) is None