def test_search_not_sandbox(self): tender = Tender(self.tender_data) tender.submissionMethodDetails = "some;quick(mode:fast-forward)" self.assertFalse(submission_search(QUICK_FAST_FORWARD, tender))
def test_search_quick_no_auction(self): tender = Tender(self.tender_data) tender.submissionMethodDetails = "some;quick(mode:no-auction)" self.assertTrue(submission_search(QUICK_NO_AUCTION, tender))
def test_search_list(self): tender = Tender(self.tender_data) tender.submissionMethodDetails = "some;quick(mode:fast-forward)" self.assertTrue( submission_search([QUICK_FAST_FORWARD, "another"], tender))
def test_search_quick(self): tender = Tender(self.tender_data) tender.submissionMethodDetails = "some;quick" self.assertTrue(submission_search(QUICK, tender))