Example #1
0
 def test_to_dict_minimal(self):
     link = Link('href', 'rel')
     expected = {
         'href': 'href',
         'rel': 'rel',
     }
     self.assertEqual(link.to_dict(), expected)
Example #2
0
 def test_to_dict_with_data(self):
     link = Link('href', 'rel', 'name', 'render', 'prompt')
     expected = {
         'href': 'href',
         'rel': 'rel',
         'name': 'name',
         'render': 'render',
         'prompt': 'prompt',
     }
     self.assertEqual(link.to_dict(), expected)