Esempio 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)
Esempio n. 2
0
 def test_raises_not_implemented_error_on_invocation(self):
     json = {}
     with pytest.raises(NotImplementedError):
         ViewMapper.to_model_from_json(json)
Esempio n. 3
0
 def test_raises_not_implemented_error_on_invocation(self):
     json = {}
     with pytest.raises(NotImplementedError):
         ViewMapper.to_model_from_json(json)
Esempio 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)