Esempio n. 1
0
 def test_get_all_documents(self):
     """Verify `/documents/all` works (JSON)."""
     data = server.get_all_documents()
     expected = {'PREFIX': {'UID': {'links': ['UID3', 'UID4'],
                                    'text': 'TEXT'},
                            'UID2': {}},
                 'PREFIX2': {}}
     self.assertEqual(expected, data)
Esempio n. 2
0
 def test_get_all_documents(self):
     """Verify `/documents/all` works (JSON)."""
     data = server.get_all_documents()
     expected = {
         'PREFIX': {'UID': {'links': ['UID3', 'UID4'], 'text': 'TEXT'}, 'UID2': {}},
         'PREFIX2': {},
     }
     self.assertEqual(expected, data)
Esempio n. 3
0
 def test_get_all_documents(self):  # pylint: disable=R0201
     """Verify `/document/all` works (HTML)."""
     for line in server.get_all_documents():
         print(line)
Esempio n. 4
0
 def test_get_all_documents(self):  # pylint: disable=R0201
     """Verify `/document/all` works (HTML)."""
     for line in server.get_all_documents():
         print(line)