File: test_examples.py

package info (click to toggle)
python-x-wr-timezone 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 268 kB
  • sloc: python: 517; sh: 24; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
"""Make sure the examples are what we want them to be"""

def test_calendars_are_the_same(calendars):
    assert calendars["single-event-x-wr-timezone-not-used.in"].to_ical() == \
        calendars["single-event-x-wr-timezone-not-used.out"].to_ical()


def test_calendars_differ(calendars):
    assert calendars["single-events-DTSTART-DTEND.in"].to_ical() != \
        calendars["single-events-DTSTART-DTEND.out"].to_ical()