Exemplo n.º 1
0
    def test_interfaces(self):
        # TODO: Pass any keyword arguments to the Assignment constructor
        portlet1 = hot_threads.Assignment(5, 'testforum')

        portlet2 = popular_threads.Assignment(5, 'interval', 'testforum',)

        self.failUnless(IPortletAssignment.providedBy(portlet1))
        self.failUnless(IPortletAssignment.providedBy(portlet2))
        self.failUnless(IPortletDataProvider.providedBy(portlet1.data))
        self.failUnless(IPortletDataProvider.providedBy(portlet2.data))
    def test_interfaces(self):
        # TODO: Pass any keyword arguments to the Assignment constructor
        portlet = fblikebox.Assignment(api_key=u"test",
                                       page_url=u"http://facebook.com/test")

        self.assertTrue(IPortletAssignment.providedBy(portlet))
        self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
    def test_interfaces(self):
        # TODO: Pass any keyword arguments to the Assignment constructor
        portlet = fbwall.Assignment(fb_account = u"test",
                                      wall_id = u"Test",
                                      max_results = 20)

        self.failUnless(IPortletAssignment.providedBy(portlet))
        self.failUnless(IPortletDataProvider.providedBy(portlet.data))
    def test_interfaces(self):
        # TODO: Pass any keyword arguments to the Assignment constructor
        portlet = twsearch.Assignment(tw_account = u"test", 
                                      search_string = u"Test",
                                      show_avatars = False,
                                      max_results = 20)

        self.failUnless(IPortletAssignment.providedBy(portlet))
        self.failUnless(IPortletDataProvider.providedBy(portlet.data))
    def test_interfaces(self):
        # TODO: Pass any keyword arguments to the Assignment constructor
        portlet = twprofile.Assignment(tw_account=u"test",
                                       tw_user=u"Test",
                                       show_avatars=False,
                                       max_results=20)

        self.assertTrue(IPortletAssignment.providedBy(portlet))
        self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 6
0
    def test_interfaces(self):
        portlet = flattrportlet.Assignment(button_type=u'Static',
            thing_url=u'http://example.com/thing1',
            text=u'Hello World')
        self.failUnless(IPortletAssignment.providedBy(portlet))
        self.failUnless(IPortletDataProvider.providedBy(portlet.data))

        self.assertEquals(portlet.button_type, u'Static')
        self.assertEquals(portlet.thing_url, u'http://example.com/thing1')
        self.assertEquals(portlet.text, u'Hello World')
Exemplo n.º 7
0
 def testInterfaces(self):
     portlet = static.Assignment(header=u"title", text="text")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 8
0
 def testInterfaces(self):
     portlet = mailchimp.Assignment(name="foo")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 9
0
 def test_interfaces(self):
     latest_sectionable = latest_sectionable_nitf.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(latest_sectionable))
     self.assertTrue(IPortletDataProvider.providedBy(latest_sectionable.data))
Exemplo n.º 10
0
 def testInterfaces(self):
     portlet = mailchimp.Assignment(name="foo")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = actions.Assignment(ptitle=u'actions', category=u'document', show_icons=True)
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
     return
 def test_interfaces(self):
     # TODO: Pass any keyword arguments to the Assignment constructor
     portlet = rerportletadvancedstatic.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 13
0
 def testInterfaces(self):
     portlet = portlet_events.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = contentleadimagecollectionportlet.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 15
0
 def testInterfaces(self):
     portlet = review.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = busca.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 17
0
 def testInterfaces(self):
     portlet = person.Assignment(header=u"title", text="text")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 18
0
 def test_interfaces(self):
     portlet = actions.Assignment(ptitle=u'actions', category=u'document', show_icons=True)
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
     return
Exemplo n.º 19
0
 def test_interfaces(self):
     portlet = voteportlet.Assignment(header='Polls', poll='latest')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = author.Assignment(count=5)
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 21
0
 def test_interfaces(self):
     # TODO: Pass any keyword arguments to the Assignment constructor
     portlet = usertrack.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = sliderportlet.Assignment(over=u"blah", under=u"blah")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 23
0
 def testInterfaces(self):
     portlet = simple.SimpleAssignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet))
Exemplo n.º 24
0
 def testInterfaces(self):
     portlet = carousel.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = talportlet.Assignment(
         title=u"Test", tal=u"<b tal:content='context/Title'/>")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     # TODO: Pass any keywoard arguments to the Assignment constructor
     portlet = producentregisteringhelp.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = collection.Assignment(header=u"title")
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = localcontents.Assignment(**{'name':'In this section...', 'display_when_not_default_page': False})
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     # TODO: Pass any keyword arguments to the Assignment constructor
     for p in (LineageEventsPortlet, LineageNewsPortlet):
         portlet = p.Assignment()
         self.failUnless(IPortletAssignment.providedBy(portlet))
         self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     # TODO: Pass any keywoard arguments to the Assignment constructor
     portlet = addoriginalfile.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 31
0
 def test_portlet_interfaces(self):
     portlet = speaker_portlet.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = weather.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 33
0
 def testInterfaces(self):
     portlet = PMR1Curation.Assignment(curator_uri='http://example.com')
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_portlet_interfaces(self):
     portlet = speeches_portlet.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 35
0
 def test_Interfaces(self):
     portlet = redmine_tickets.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     # TODO: Pass any keywoard arguments to the Assignment constructor
     portlet = customizabletagcloudportlet.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 37
0
 def test_interfaces(self):
     portlet = voteportlet.Assignment(header='Polls', poll='latest')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 38
0
 def testInterfaces(self):
     portlet = portlet_events.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 39
0
 def test_interfaces(self):
     # TODO: Pass any keyword arguments to the Assignment constructor
     portlet = groupcollection.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 40
0
 def testInterfaces(self):
     portlet = collection.Assignment(header=u"title")
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 41
0
 def testInterfaces(self):
     portlet = classic.Assignment(template='portlet_recent', macro='portlet')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemplo n.º 42
0
 def testInterfaces(self):
     portlet = portlet_events.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = keywordrelatedportlet.Assignment(**assignment_keywords)
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = sliderportlet.Assignment(over=u"blah", under=u"blah")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     # TODO: Pass any keywoard arguments to the Assignment constructor
     portlet = cataloguingworkplans.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))