Skip to content

Commit

Permalink
Changed naming in test_server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Jul 21, 2013
1 parent 8c86631 commit a3d31f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions python-api/gstswitch/test_connection.py
@@ -1,5 +1,3 @@
import sys
from gi.repository import GLib
from connection import Connection
from exception import *
import pytest
Expand All @@ -23,3 +21,4 @@ def test_address_unknown(self):
with pytest.raises(ValueError):
Connection(address=address)

class Test
10 changes: 9 additions & 1 deletion python-api/gstswitch/test_server.py
Expand Up @@ -3,7 +3,7 @@
from exception import *


class TestRun(object):
class TestPath(object):

# Path Tests
def test_invalid_path(self):
Expand All @@ -18,6 +18,8 @@ def test_invalid_path_none(self):
with pytest.raises(ValueError):
Server(path=path)


class TestVideoPort(object):
# Video Port Tests
def test_invalid_video_port_null(self):
path = '/home/hyades/gst/master/gstreamer/tools/'
Expand All @@ -40,6 +42,8 @@ def test_invalid_video_port_range(self):
with pytest.raises(ValueError):
Server(path=path, video_port=video_port)


class TestAudioPort(object):
# Audio Port Tests
def test_invalid_audio_port_null(self):
path = '/home/hyades/gst/master/gstreamer/tools/'
Expand All @@ -62,6 +66,8 @@ def test_invalid_audio_port_range(self):
with pytest.raises(ValueError):
Server(path=path, audio_port=audio_port)


class TestControlPort(object):
# Control Port Tests
def test_invalid_control_port_null(self):
path = '/home/hyades/gst/master/gstreamer/tools/'
Expand All @@ -84,6 +90,8 @@ def test_invalid_control_port_range(self):
with pytest.raises(ValueError):
Server(path=path, control_port=control_port)


class TestNormal(object):
# Normal Functioning Tests
def test_normal_terminate(self):
path = '/home/hyades/gst/master/gstreamer/tools/'
Expand Down

0 comments on commit a3d31f1

Please sign in to comment.