示例#1
0
 def test_find_newest_sprint_for_template(self):
     """
     Verify that we can properly find the newest sprint of a
     specific "color"
     """
     template_name = 'TEMPLATE_SPRINT_GREEN'
     actual = utils.find_newest_sprint_for_template(template_name)
     expected = {'color': 'Green', 'visible_id': '123'}
     self.assertEquals(actual, expected)
示例#2
0
    def test_get_new_sprint_name_use_date(self):
        """ The expected sprint name should not contain dates"""
        template_name = 'TEMPLATE_SPRINT_GREEN'
        last_sprint_found = utils.find_newest_sprint_for_template(template_name)
        start_date = date.today()
        end_date = start_date + relativedelta(days=+13)

        expected = 'Green Sprint 065'
        actual = utils.get_new_sprint_name(template_name, last_sprint_found,
                                           start_date, end_date)
        self.assertEquals(actual, expected)