class TestReaders(unittest.TestCase):

	def setUp(self):
	   self.reader = Reader() 

	def tearDown(self):
	   self.reader.stop()

	def test_when_read_file(self):
	   self.assertEqual(self.reader.read('/Users/alvarofidalgo/gsSpark/movies.dat'),'(1996)')
Example #2
0
class TestReaders(unittest.TestCase):

	def setUp(self):
	   self.reader = Reader() 

	def tearDown(self):
	   self.reader.stop()

	def test_when_read_file(self):
	   self.assertEqual(self.reader.read('/Users/alvarofidalgo/gsSpark/movies.dat','Years'),('(1996)'))
	def setUp(self):
	   self.reader = Reader() 
Example #4
0
	def setUp(self):
	   self.reader = Reader()