ruby/tests/ruby_tests.py

27 lines
463 B
Python
Raw Normal View History

#!/usr/bin/python
import socket
from avocado import main
from moduleframework import module_framework
class RubyTests(module_framework.AvocadoTest):
"""
:avocado: enable
"""
def test_cmd(self):
self.start()
self.run("which ruby")
def test_version(self):
self.start()
self.run("ruby -v")
def test_hostname(self):
self.start()
self.run("hostname")
if __name__ == '__main__':
main()