def test_paths(self):
     expected = {
         'type': 'COMMAND',
         'type_data': 'update_output',
         'data': {'src': ['file1.txt', 'file 2.txt']},
     }
     self.assertEqual(save_list('src', 'file1.txt', 'file 2.txt'), expected)
 def test_urls(self):
     self.assertJSONEqual(
         save_list('urls', '{"name": "View", "url": "https://www.google.com"}',
                   '{"name": "View", "url": "https://www.genialis.com"}'),
         '{"urls": [{"url": "https://www.google.com", "name": "View"}, '
         '{"url": "https://www.genialis.com", "name": "View"}]}'
     )
 def test_urls(self):
     self.assertJSONEqual(
         save_list('urls',
                   '{"name": "View", "url": "https://www.google.com"}',
                   '{"name": "View", "url": "https://www.genialis.com"}'),
         '{"urls": [{"url": "https://www.google.com", "name": "View"}, '
         '{"url": "https://www.genialis.com", "name": "View"}]}')
 def test_urls(self):
     expected = {
         'type': 'COMMAND',
         'type_data': 'update_output',
         'data': {
             'urls': [
                 {'name': 'View', 'url': 'https://www.google.com'},
                 {'name': 'View', 'url': 'https://www.genialis.com'},
             ]
         },
     }
     self.assertEqual(
         save_list(
             'urls',
             '{"name": "View", "url": "https://www.google.com"}',
             '{"name": "View", "url": "https://www.genialis.com"}',
         ),
         expected,
     )
 def test_paths(self):
     self.assertEqual(save_list('src', 'file1.txt', 'file 2.txt'),
                      '{"src": ["file1.txt", "file 2.txt"]}')
 def test_paths(self):
     self.assertEqual(save_list('src', 'file1.txt', 'file 2.txt'),
                      '{"src": ["file1.txt", "file 2.txt"]}')