def test_get_activity_id_returns_exctracted_activity_id(self): cal = CalendarGoogle(config, '') self.assertEquals(cal.get_activity_id('#activitY: 234'), 234)
def test_get_activity_id_returns_default_activity_id(self): cal = CalendarGoogle(config, '') self.assertEquals(cal.get_activity_id('description'), 10)
def test_get_activity_id_returns_error_on_config_missing(self): config_copy = copy.copy(config) config_copy.append(('activity_id_pattern', '')) cal = CalendarGoogle(config_copy, '') self.assertEquals(cal.get_activity_id('description'), -1)
def test_get_activity_id_returns_exctracted_activity_id(self): cal = CalendarGoogle(config, '') self.assertEquals(cal.get_activity_id('#activitY: 234'), 234)
def test_get_activity_id_returns_default_activity_id(self): cal = CalendarGoogle(config, '') self.assertEquals(cal.get_activity_id('description'), 10)
def test_get_activity_id_returns_error_on_config_missing(self): config_copy = copy.copy(config) config_copy.append(('activity_id_pattern', '')) cal = CalendarGoogle(config_copy, '') self.assertEquals(cal.get_activity_id('description'), -1)