def test_filterToday(self): actual = MattermostNotifier.filterToday([ TogglEntry(None, 4 * 3600, self.today, 777, "#666 Hardwork", self.redmine_config), TogglEntry(None, 4 * 3600, None, 778, "#666 Hardwork", self.redmine_config), ]) self.assertEquals(1, len(actual)) self.assertEquals(actual[0].id, 777)
def test_filterToday_None(self): actual = MattermostNotifier.filterToday(None) self.assertEquals(0, len(actual))
def test_filterToday_empty(self): actual = MattermostNotifier.filterToday([]) self.assertEquals(0, len(actual))