lib/torpedo/compute/limits.rb in torpedo-1.0.19 vs lib/torpedo/compute/limits.rb in torpedo-2.1.0

- old
+ new

@@ -1,19 +1,24 @@ require File.dirname(__FILE__) + '/helper' module Torpedo -module Compute -class Limits < Test::Unit::TestCase + module Compute - def setup - @conn=Helper::get_connection - end + class Limits < Test::Unit::TestCase - def test_list + def setup + @conn=Helper::get_connection + end - assert_not_nil @conn.limits + def test_list - end + limits = @conn.get_limits.body['limits'] + assert_not_nil limits + assert_not_nil limits['rate'] + assert_not_nil limits['absolute'] -end if TEST_LIMITS -end + end if TEST_LIMITS + + end + + end end