Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/d/i/divmod.org-HEAD/Quotient/xquotient/test/test_workflow.py   divmod.org(Download)
        sq = MailboxSelector(store=self.store)
        sq.refineByStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
 
        self.failUnless(m.hasStatus(DUMMY_STATUS))
 
        self.assertEquals(list(sq), [])
        self.assertEquals(sq.count(), 0)
 
 
        sq = MailboxSelector(store=self.store)
        m.addStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
        self.assertEquals(list(sq), [m])
        m.addStatus(DUMMY_STATUS_2)
        sq.refineByStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
        self.assertEquals(list(sq), [m])
        sq.refineByStatus(FAKE_STATUS)
        self.assertEquals(sq.count(), 0)

src/q/u/Quotient-0.3.0/xquotient/test/test_workflow.py   Quotient(Download)
        sq = MailboxSelector(store=self.store)
        sq.refineByStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
 
        self.failUnless(m.hasStatus(DUMMY_STATUS))
 
        self.assertEquals(list(sq), [])
        self.assertEquals(sq.count(), 0)
 
 
        sq = MailboxSelector(store=self.store)
        m.addStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
        self.assertEquals(list(sq), [m])
        m.addStatus(DUMMY_STATUS_2)
        sq.refineByStatus(DUMMY_STATUS)
        self.assertEquals(sq.count(), 1)
        self.assertEquals(list(sq), [m])
        sq.refineByStatus(FAKE_STATUS)
        self.assertEquals(sq.count(), 0)