old_contents: import framecurve
  
  
  def test_empty():
      c = framecurve.Curve()
      assert len(c) == 0
  
  
  def test_one_tuple():
      c = framecurve.Curve()
      c.append(framecurve.FrameCorrelation(1, 2.4))
  
      print str(c[0])
  
      assert len(c) == 1
      assert c[0] == framecurve.FrameCorrelation(1, 2.4)
      assert str(c[0]) == "1\t2.40000"
  
  
  def test_init_with_values():
      e1 = framecurve.FrameCorrelation(1, 2.4)
      e2 = framecurve.Comment("Test")
      c = framecurve.Curve(values = [e1, e2])
      assert len(c) == 2
      assert c[1].text == "Test"
  
new_contents: import framecurve
  
  
  def test_empty():
      c = framecurve.Curve()
      assert len(c) == 0
  
  
  def test_one_tuple():
      c = framecurve.Curve()
      c.append(framecurve.FrameCorrelation(1, 2.4))
  
      print str(c[0])
  
      assert len(c) == 1
      assert c[0] == framecurve.FrameCorrelation(1, 2.4)
      assert str(c[0]) == "1\t2.40000"
  
  
  def test_init_with_values():
      e1 = framecurve.FrameCorrelation(1, 2.4)
      e2 = framecurve.Comment("Test")
      c = framecurve.Curve(values = [e1, e2])
      assert len(c) == 2
      assert c[1].text == "Test"
  
  
  def test_frames_iter():
      """Test Curve.frames iterator
      """
  
      c = framecurve.Curve()
      c.append(framecurve.FrameCorrelation(1, 2.4))
      c.append(framecurve.FrameCorrelation(2, 3.0))
      c.append(framecurve.FrameCorrelation(3, 5.0))
  
      ats = [x.at for x in c.frames()]
      values = [x.value for x in c.frames()]
  
      assert ats == [1, 2, 3]
      assert values == [2.4, 3.0, 5.0]
  
subject: Test for Curve.frames iterator