import cutplanner
import unittest

class TestPlanner(unittest.TestCase):

    def setUp(self):
        sizes = [80, 120]
        needed = [10, 25, 75]
        loss = 0.25
        self.planner = cutplanner.Planner(sizes, needed, loss)

    def test_get_largest(self):
        largest = self.planner.get_largest_stock()
        self.assertEqual(largest, 120)

if __name__ == '__main__':
    unittest.main()

import cutplanner
import unittest

class TestPlanner(unittest.TestCase):

    def setUp(self):
        sizes = [80, 120]
        needed = [10, 25, 75]
        loss = 0.25
        self.planner = cutplanner.Planner(sizes, needed, loss)

    def test_largest_stock(self):
        largest = self.planner.largest_stock
        self.assertEqual(largest, 120)

if __name__ == '__main__':
    unittest.main()

Update test for largest stock
Update test for largest stock

  import cutplanner
  import unittest
  
  class TestPlanner(unittest.TestCase):
  
      def setUp(self):
          sizes = [80, 120]
          needed = [10, 25, 75]
          loss = 0.25
          self.planner = cutplanner.Planner(sizes, needed, loss)
  
-     def test_get_largest(self):
+     def test_largest_stock(self):
-         largest = self.planner.get_largest_stock()
+         largest = self.planner.largest_stock
          self.assertEqual(largest, 120)
  
  if __name__ == '__main__':
      unittest.main()
  
Update test for largest stock
## Code Before:
import cutplanner
import unittest

class TestPlanner(unittest.TestCase):

    def setUp(self):
        sizes = [80, 120]
        needed = [10, 25, 75]
        loss = 0.25
        self.planner = cutplanner.Planner(sizes, needed, loss)

    def test_get_largest(self):
        largest = self.planner.get_largest_stock()
        self.assertEqual(largest, 120)

if __name__ == '__main__':
    unittest.main()

## Instruction:
Update test for largest stock
## Code After:
import cutplanner
import unittest

class TestPlanner(unittest.TestCase):

    def setUp(self):
        sizes = [80, 120]
        needed = [10, 25, 75]
        loss = 0.25
        self.planner = cutplanner.Planner(sizes, needed, loss)

    def test_largest_stock(self):
        largest = self.planner.largest_stock
        self.assertEqual(largest, 120)

if __name__ == '__main__':
    unittest.main()
