2
# Copyright (c) 2012 Canonical
4
# This file is part of Checkbox.
6
# Storm is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU Lesser General Public License as
8
# published by the Free Software Foundation; either version 2.1 of
9
# the License, or (at your option) any later version.
11
# Storm is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Lesser General Public License for more details.
16
# You should have received a copy of the GNU Lesser General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
23
from unittest import TestCase
25
from checkbox.journal.score import Score
28
class TestScore(TestCase):
38
self.assertEquals(cmp(a, b), 0)
41
self.assertEquals(cmp(a, b), 1)
42
self.assertEquals(cmp(1, b), 1)
45
self.assertEquals(cmp(a, b), -1)
46
self.assertEquals(cmp(a, 2), -1)