def getScrollingWidget(self, howManyElements=0):
     store = Store()
     installOn(PrivateApplication(store=store), store)
     for n in xrange(howManyElements):
         testMessageFactory(store, spam=False)
     f = MailboxScrollingFragment(store)
     f.docFactory = getLoader(f.fragmentName)
     f.setFragmentParent(self)
     return f
Exemplo n.º 2
0
 def setUp(self):
     """
     Create a store and a scrolling fragment
     """
     self.store = Store()
     self.scrollingFragment = MailboxScrollingFragment(self.store)