fix test cases (wa changed something)

master
mutantmonkey 2013-01-10 22:34:09 -05:00
parent 3e0738191f
commit 45da6933d4
2 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,9 @@ class TestCalc(unittest.TestCase):
input = Mock(group=lambda x: 'airspeed of an unladen swallow') input = Mock(group=lambda x: 'airspeed of an unladen swallow')
wa(self.phenny, input) wa(self.phenny, input)
self.phenny.say.assert_called_once_with('25 mph (miles per hour)') self.phenny.say.assert_called_once_with('25 mph (miles per hour), '\
'(asked, but not answered, about a general swallow in the '\
'1975 film Monty Python and the Holy Grail)')
def test_wa_none(self): def test_wa_none(self):
input = Mock(group=lambda x: "jajoajaj ojewphjqo I!tj") input = Mock(group=lambda x: "jajoajaj ojewphjqo I!tj")

View File

@ -19,7 +19,4 @@ class MetarTest(unittest.TestCase):
assert w.temperature > -100 assert w.temperature > -100
assert w.temperature < 100 assert w.temperature < 100
assert w.dewpoint > -100
assert w.dewpoint < 100
assert w.pressure is not None assert w.pressure is not None