Example #1
0
 def test_create_header_no_token(self):
     self.assertEqual(
         embyupdate.create_headers('e8837bc1-ad67-520e-8cd2-f629e3155721'),
         {
             'Authorization': 'MediaBrowser',
             'UserId': 'e8837bc1-ad67-520e-8cd2-f629e3155721',
             'Client': 'other',
             'Device': 'empy',
             'DeviceId': 'beets',
             'Version': '0.0.0'
         })
Example #2
0
 def test_create_header_no_token(self):
     self.assertEqual(
         embyupdate.create_headers("e8837bc1-ad67-520e-8cd2-f629e3155721"),
         {
             "Authorization": "MediaBrowser",
             "UserId": "e8837bc1-ad67-520e-8cd2-f629e3155721",
             "Client": "other",
             "Device": "empy",
             "DeviceId": "beets",
             "Version": "0.0.0",
         },
     )
Example #3
0
 def test_create_header_no_token(self):
     self.assertEqual(
         embyupdate.create_headers('e8837bc1-ad67-520e-8cd2-f629e3155721'),
         {
             'Authorization': 'MediaBrowser',
             'UserId': 'e8837bc1-ad67-520e-8cd2-f629e3155721',
             'Client': 'other',
             'Device': 'empy',
             'DeviceId': 'beets',
             'Version': '0.0.0'
         }
     )
Example #4
0
 def test_create_header_no_token(self):
     self.assertEqual(
         embyupdate.create_headers('e8837bc1-ad67-520e-8cd2-f629e3155721'),
         {
             'x-emby-authorization': (
                 'MediaBrowser '
                 'UserId="e8837bc1-ad67-520e-8cd2-f629e3155721", '
                 'Client="other", '
                 'Device="beets", '
                 'DeviceId="beets", '
                 'Version="0.0.0"'
             )
         }
     )
Example #5
0
 def test_create_header_no_token(self):
     self.assertEqual(
         embyupdate.create_headers('e8837bc1-ad67-520e-8cd2-f629e3155721'),
         {
             'x-emby-authorization': (
                 'MediaBrowser '
                 'UserId="e8837bc1-ad67-520e-8cd2-f629e3155721", '
                 'Client="other", '
                 'Device="beets", '
                 'DeviceId="beets", '
                 'Version="0.0.0"'
             )
         }
     )