Example #1
0
 def test_construct_entity_missing_non_essential(self):
     """Tests that non-essential pieces are ignored."""
     entity = {'class': ['blah']}
     builder = SirenBuilder()
     resp = builder._construct_entity(entity)
     self.assertIsInstance(resp, SirenEntity)
Example #2
0
 def test_construct_entity_missing_non_essential(self):
     """Tests that non-essential pieces are ignored."""
     entity = {'class': ['blah']}
     builder = SirenBuilder()
     resp = builder._construct_entity(entity)
     self.assertIsInstance(resp, SirenEntity)