def event_obj(): e = Event(name="get-together", when=dt.datetime.utcnow(), location="Joe's Place") e.add_source(url='foobar') e.validate() return e
def test_basic_agenda(): e = Event(name="get-together", when=dt.datetime.utcnow(), location="Joe's Place") e.add_source(url='foobar') e.validate() agenda = e.add_agenda_item("foo bar") assert agenda e.validate()
def test_basic_event(): """ test that we can create an event """ e = Event(name="get-together", when=dt.datetime.utcnow(), location="Joe's Place") e.add_source(url='foobar') e.validate() e.add_link("http://foobar.baz") e.add_link("http://foobar.baz", note="foo") e.validate() assert len(e.links) == 2