'Test getting the number of series.'

@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
def test_series(self, req_mock):

    config = {'platform': 'sonarr', 'api_key': 'foo', 'days': '2', 'unit': 'GB', 'include_paths': ['/data'], 'monitored_conditions': ['series']}
    sonarr.setup_platform(self.hass, config, self.add_devices, None)
    for device in self.DEVICES:
        device.update()
        self.assertEqual(1, device.state)
        self.assertEqual('mdi:television', device.icon)
        self.assertEqual('Shows', device.unit_of_measurement)
        self.assertEqual('Sonarr    Series', device.name)
        self.assertEqual('26/26    Episodes', device.device_state_attributes["Marvel's    Daredevil"])
