def test_answer_day2_for_me(self): full_order = open('input.txt', 'r') result = calculate_footage_of_ribbon_needed(full_order) print "The total amount of ribbon needed should be: " + str(result) # Answer: 3783758 self.assertEqual(3783758, result)
def test_get_full_order(self): # full_order = ['2x3x4', '1x1x10'] # 34 + 14 = 48 result = calculate_footage_of_ribbon_needed(full_order) # print "The total should be (48), got: " + str(result) self.assertEqual(48, result)