# Path: pyca/ui/opencast_commands.py
# DUBLINCORE = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?>
# <dublincore xmlns="http://www.opencastproject.org/xsd/1.0/dublincore/"
#     xmlns:dcterms="http://purl.org/dc/terms/"
#     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
#   <dcterms:creator>{creator}</dcterms:creator>
#   <dcterms:created xsi:type="dcterms:W3CDTF">{start}</dcterms:created>
#   <dcterms:temporal xsi:type="dcterms:Period">start={start}; end={end}; scheme=W3C-DTF;</dcterms:temporal>
#   <dcterms:language>demo</dcterms:language>
#   <dcterms:spatial>{agent_name}</dcterms:spatial>
#   <dcterms:title>{title}</dcterms:title>
# </dublincore>'''  # noqa
# def schedule(title='pyCA Recording', duration=60, creator=None):


import unittest
from pyca.ui import opencast_commands
# -*- coding: utf-8 -*-

'''
Tests for basic capturing
'''




class TestPycaIngest(unittest.TestCase):

    def setUp(self):
        opencast_commands.http_request = lambda x, y=False: b'xxx'
        opencast_commands.service = lambda x, force_update=False: ['']

    def test_schedule_defaults(self):

# Path: pyca/ui/opencast_commands.py
# DUBLINCORE = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?>
# <dublincore xmlns="http://www.opencastproject.org/xsd/1.0/dublincore/"
#     xmlns:dcterms="http://purl.org/dc/terms/"
#     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
#   <dcterms:creator>{creator}</dcterms:creator>
#   <dcterms:created xsi:type="dcterms:W3CDTF">{start}</dcterms:created>
#   <dcterms:temporal xsi:type="dcterms:Period">start={start}; end={end}; scheme=W3C-DTF;</dcterms:temporal>
#   <dcterms:language>demo</dcterms:language>
#   <dcterms:spatial>{agent_name}</dcterms:spatial>
#   <dcterms:title>{title}</dcterms:title>
# </dublincore>'''  # noqa
# def schedule(title='pyCA Recording', duration=60, creator=None):


# Path: tests/test_ui_opencast_commands.py
import unittest
from pyca.ui import opencast_commands

# -*- coding: utf-8 -*-

'''
Tests for basic capturing
'''




class TestPycaIngest(unittest.TestCase):

    def setUp(self):
        opencast_commands.http_request = lambda x, y=False: b'xxx'
        opencast_commands.service = lambda x, force_update=False: ['']

    def test_schedule_defaults(self):

        opencast_commands.schedule()