Exemplo n.º 1
0
    def test_de_json_required(self, client):
        json_dict = {'title': self.title}
        title = Title.de_json(json_dict, client)

        assert title.title == self.title
Exemplo n.º 2
0
    def test_de_json_all(self, client):
        json_dict = {'title': self.title, 'full_title': self.full_title}
        title = Title.de_json(json_dict, client)

        assert title.title == self.title
        assert title.full_title == self.full_title
Exemplo n.º 3
0
 def test_de_json_none(self, client):
     assert Title.de_json({}, client) is None