def test_without_number(self):
     section = Section(
         name={'en': 'section foo'}, subpath={'en': '/foo'},
         specification='_spec')
     expected = {
         'sections': {
             'name': {'en': 'section foo'},
             'subpath': {'en': '/foo'},
             'links': {
                 'specification': '_spec',
             }}}
     self.assertEqual(expected, section.to_json_api())
 def test_without_number(self):
     section = Section(
         name={'en': 'section foo'}, subpath={'en': '/foo'},
         specification='_spec')
     expected = {
         "sections": {
             "name": {'en': 'section foo'},
             "subpath": {'en': '/foo'},
             "links": {
                 "specification": "_spec",
             }}}
     self.assertEqual(expected, section.to_json_api())
 def test_without_number(self):
     section = Section(
         name={'en': 'section foo'}, subpath={'en': '/foo'},
         specification='_spec')
     expected = {
         "sections": {
             "name": {'en': 'section foo'},
             "subpath": {'en': '/foo'},
             "links": {
                 "specification": "_spec",
             }}}
     self.assertEqual(expected, section.to_json_api())
Exemple #4
0
 def test_without_number(self):
     section = Section(name={'en': 'section foo'},
                       subpath={'en': '/foo'},
                       specification='_spec')
     expected = {
         'sections': {
             'name': {
                 'en': 'section foo'
             },
             'subpath': {
                 'en': '/foo'
             },
             'links': {
                 'specification': '_spec',
             }
         }
     }
     self.assertEqual(expected, section.to_json_api())