<s> from nose . tools import eq_ , ok_ <EOL> import unittest <EOL> import openxc . measurements <EOL> from openxc . sources import NetworkDataSource <EOL> from openxc . sources import DataSourceError <EOL> class NetworkDataSourceTests ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( NetworkDataSourceTests , self ) . setUp ( ) <EOL> def test_create ( self ) : <EOL> def callback ( message ) : <EOL> pass <EOL> try : <EOL> s = NetworkDataSource ( callback = callback , host = '<STR_LIT:localhost>' ) <EOL> except DataSourceError as e : <EOL> pass </s>
