Exemplo n.º 1
0
    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
Exemplo n.º 2
0
 def test_de_json_none(self, client):
     assert Label.de_json({}, client) is None