Exemple #1
0
    def test_when_entry_date_is_over_filtering_return_true(self):
        filter2011 = FilterEntryYear('2011')
        include = filter2011.filter(self.thread_obj)
        self.assertTrue(include)

        filter2012 = FilterEntryYear('2012')
        include = filter2012.filter(self.thread_obj)
        self.assertTrue(include)
Exemple #2
0
 def test_when_entry_date_is_equal_or_under_over_filtering_return_true(self):
     filter2013 = FilterEntryYear('2013')
     include = filter2013.filter(self.thread_obj)
     self.assertFalse(include)