test_gilded_rose.py 369 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. import unittest
  3. from gilded_rose import Item, GildedRose
  4. class GildedRoseTest(unittest.TestCase):
  5. def test_foo(self):
  6. items = [Item("foo", 0, 0)]
  7. gilded_rose = GildedRose(items)
  8. gilded_rose.update_quality()
  9. self.assertEquals("fixme", items[0].name)
  10. if __name__ == '__main__':
  11. unittest.main()