File: test_issue_6_copy_subcomponents.py

package info (click to toggle)
python-recurring-ical-events 3.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: python: 2,896; sh: 15; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
This tests that subcomponents are carried over to different events.
"""


def test_subcomponents_are_compied(calendars):
    event = next(calendars.subcomponents.all())
    assert event.subcomponents


def test_there_are_no_subcomponents(calendars):
    event = next(calendars.Germany.all())
    assert not event.subcomponents