From ca6f1a5b555e579b8ec4f181df10ec878a69d9f8 Mon Sep 17 00:00:00 2001 From: emilybache Date: Mon, 5 Nov 2012 20:58:35 +0100 Subject: [PATCH] change to using unittest instead of py.test since it comes with the standard library --- GildedRose/python/test_gilded_rose.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/GildedRose/python/test_gilded_rose.py b/GildedRose/python/test_gilded_rose.py index 34304cdb..51e15ba5 100644 --- a/GildedRose/python/test_gilded_rose.py +++ b/GildedRose/python/test_gilded_rose.py @@ -1,6 +1,13 @@ +import unittest + from gilded_rose import Item, update_quality -def test_foo(): - items = [Item("foo", 0, 0)] - update_quality(items) - assert "fixme" == items[0].name \ No newline at end of file +class GildedRoseTest(unittest.TestCase): + def test_foo(self): + items = [Item("foo", 0, 0)] + update_quality(items) + self.assertEquals("fixme", items[0].name) + + +if __name__ == "__main__": + unittest.main() \ No newline at end of file