Exemplo n.º 1
0
 def test_raises_not_implemented_error_on_invocation(self):
     user = User(
         username='******',
         password='******',
         salt='salt'
     )
     with pytest.raises(NotImplementedError):
         ViewMapper.to_json_from_model(user)
Exemplo n.º 2
0
 def test_raises_not_implemented_error_on_invocation(self):
     json = {}
     with pytest.raises(NotImplementedError):
         ViewMapper.to_model_from_json(json)
Exemplo n.º 3
0
 def test_raises_not_implemented_error_on_invocation(self):
     json = {}
     with pytest.raises(NotImplementedError):
         ViewMapper.to_model_from_json(json)
Exemplo n.º 4
0
 def test_raises_not_implemented_error_on_invocation(self):
     user = User(username='******', password='******', salt='salt')
     with pytest.raises(NotImplementedError):
         ViewMapper.to_json_from_model(user)