Rename tests
This commit is contained in:
parent
afb05f0ac9
commit
582a9952f5
4 changed files with 1 additions and 1 deletions
32
test/test_lxc_undefined.rb
Normal file
32
test/test_lxc_undefined.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
|
||||
|
||||
require 'test/unit'
|
||||
require 'lxc'
|
||||
|
||||
class TestLXCUndefined < Test::Unit::TestCase
|
||||
def setup
|
||||
@name = 'test_undefined'
|
||||
@container = LXC::Container.new(@name)
|
||||
end
|
||||
|
||||
def test_container_config_file_name
|
||||
config_path = File.join(LXC.default_config_path, @name, 'config')
|
||||
assert_equal(config_path, @container.config_file_name)
|
||||
end
|
||||
|
||||
def test_container_not_defined
|
||||
assert(!@container.defined?)
|
||||
end
|
||||
|
||||
def test_container_init_pid
|
||||
assert_nil(@container.init_pid)
|
||||
end
|
||||
|
||||
def test_container_not_running
|
||||
assert(!@container.running?)
|
||||
end
|
||||
|
||||
def test_container_stopped
|
||||
assert_equal('STOPPED', @container.state)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue