예제 #1
0
    def test_get_field_with_field_name(self):
        """Tests the method get_field of a ticket, that returns the field dictionary"""
        task = AgiloTicket(self.env, t_type=Type.TASK)
        f = task.get_field(Key.REMAINING_TIME)
        self.assert_not_none(f)
        self.assert_equals(Key.REMAINING_TIME, f[Key.NAME])

        us = AgiloTicket(self.env, t_type=Type.USER_STORY)
        f = us.get_field(Key.STORY_POINTS)
        self.assert_not_none(f)
        self.assert_equals(Key.STORY_POINTS, f[Key.NAME])

        # Now calculated fields
        c = us.get_field(Key.TOTAL_REMAINING_TIME)
        self.assert_not_none(c)
        self.assert_equals(Key.TOTAL_REMAINING_TIME, c[Key.NAME])
예제 #2
0
 def test_get_field_with_field_name(self):
     """Tests the method get_field of a ticket, that returns the field dictionary"""
     task = AgiloTicket(self.env, t_type=Type.TASK)
     f = task.get_field(Key.REMAINING_TIME)
     self.assert_not_none(f)
     self.assert_equals(Key.REMAINING_TIME, f[Key.NAME])
     
     us = AgiloTicket(self.env, t_type=Type.USER_STORY)
     f = us.get_field(Key.STORY_POINTS)
     self.assert_not_none(f)
     self.assert_equals(Key.STORY_POINTS, f[Key.NAME])
     
     # Now calculated fields
     c = us.get_field(Key.TOTAL_REMAINING_TIME)
     self.assert_not_none(c)
     self.assert_equals(Key.TOTAL_REMAINING_TIME, c[Key.NAME])