Skip to content
Browse files

use python unittest

  • Loading branch information...
1 parent 041c04d commit f7107aeb3120509afd721696f9075184ff9dabb0 @housemaister committed Oct 16, 2012
Showing with 12 additions and 4 deletions.
  1. +12 −4 GildedRose/python/test_gilded_rose.py
View
16 GildedRose/python/test_gilded_rose.py
@@ -1,6 +1,14 @@
from gilded_rose import Item, update_quality
-def test_foo():
- items = [Item("foo", 0, 0)]
- update_quality(items)
- assert "fixme" == items[0].name
+import unittest
+
+class TestGildedRose(unittest.TestCase):
+ def test_foo(self):
+ items = [Item("foo", 0, 0)]
+ update_quality(items)
+ assert "fixme" == items[0].name
+
+
+if __name__ == '__main__':
+ unittest.main()
+

0 comments on commit f7107ae

Please sign in to comment.
Something went wrong with that request. Please try again.