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))
Exemple #2
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
    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 = 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))
    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):
        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')
 def test_interfaces(self):
     latest_sectionable = latest_sectionable_nitf.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(latest_sectionable))
     self.assertTrue(IPortletDataProvider.providedBy(latest_sectionable.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 testInterfaces(self):
     portlet = mailinglijst.Assignment(name="foo")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #11
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))
Exemple #12
0
 def testInterfaces(self):
     portlet = currency_converter.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = mailchimp.Assignment(name="foo")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = news.Assignment(count=5)
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = collectionbysubject.Assignment(header='test header')
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #16
0
 def test_interfaces(self):
     # TODO: Pass any keywoard arguments to the Assignment constructor
     portlet = librarianworkplans.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #17
0
 def test_interfaces(self):
     portlet = personleadimagecollectionportlet.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #18
0
 def test_interfaces(self):
     last_sectionable = latest_sectionable_nitf.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(last_sectionable))
     self.assertTrue(IPortletDataProvider.providedBy(last_sectionable.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))
Exemple #20
0
 def test_interfaces(self):
     portlet = voteportlet.Assignment(header='Polls',
                                      poll='latest')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemple #21
0
 def test_interfaces(self):
     # TODO: Pass any keyword arguments to the Assignment constructor
     portlet = mybookmarksportlet.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #22
0
 def testInterfaces(self):
     portlet = PMR1Curation.Assignment(curator_uri='http://example.com')
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #23
0
 def testInterfaces(self):
     portlet = carousel.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     for module in [p['module'] for p in self.portlets]:
         portlet = module.Assignment()
         self.failUnless(IPortletAssignment.providedBy(portlet))
         self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = author.Assignment(count=5)
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = static.Assignment(header=u"title", text="text")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #27
0
 def test_interfaces(self):
     portlet = voteportlet.Assignment(header='Polls', poll='latest')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def test_Interfaces(self):
     portlet = redmine_tickets.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #29
0
 def testInterfaces(self):
     portlet = simple.SimpleAssignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet))
 def testInterfaces(self):
     portlet = existing_content_portlet.Assignment()
     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 = rerportletadvancedstatic.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))
 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 = audiogallery.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def test_interfaces(self):
     portlet = practical_solutions.Assignment(["agriculture"])
     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 testInterfaces(self):
     portlet = collection.Assignment(header=u"title")
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemple #38
0
 def testInterfaces(self):
     portlet = static.Assignment(header=u"title", text="text")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = portlet_mod.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #40
0
 def test_portlet_interfaces(self):
     portlet = speeches_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))
 def test_interfaces(self):
     last = buscaleg.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(last))
     self.assertTrue(IPortletDataProvider.providedBy(last.data))
 def test_portlet_interfaces(self):
     portlet = speeches_portlet.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))
Exemple #45
0
 def test_interfaces(self):
     sb_portlet = portlet.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(sb_portlet))
     self.assertTrue(IPortletDataProvider.providedBy(sb_portlet.data))
 def testInterfaces(self):
     portlet = news.Assignment(count=5)
     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))
 def test_interfaces(self):
     portlet = contentleadimagecollectionportlet.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #49
0
 def testInterfaces(self):
     portlet = portlet_events.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = carousel.Assignment(header=u"title")
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
 def testInterfaces(self):
     portlet = review.Assignment()
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(IPortletDataProvider.providedBy(portlet.data))
Exemple #52
0
 def testInterfaces(self):
     portlet = classic.Assignment(template='portlet_recent',
                                  macro='portlet')
     self.assertTrue(IPortletAssignment.providedBy(portlet))
     self.assertTrue(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
Exemple #54
0
 def testInterfaces(self):
     portlet = quicklinks.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet))
 def testInterfaces(self):
     portlet = portlet_events.Assignment()
     self.failUnless(IPortletAssignment.providedBy(portlet))
     self.failUnless(IPortletDataProvider.providedBy(portlet.data))
Exemple #56
0
 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 = sliderportlet.Assignment(over=u"blah", under=u"blah")
     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))