Ejemplo n.º 1
0
 def test_too_many_lines_between(self):
     moves = MovesFile('tests/too_many_lines_between.dat')
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 2
0
 def test_normal(self):
     moves = MovesFile('tests/normal.dat')
     moves_list = list(moves.parse())
     self.assertEqual(710, len(moves_list))
Ejemplo n.º 3
0
 def test_too_many_lines_between(self):
     moves = MovesFile(
         {'-i': os.path.join(ROOT, 'too_many_lines_between.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 4
0
 def test_empty_line_missing(self):
     moves = MovesFile('tests/empty_line_missing.dat')
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 5
0
 def test_empty_line_missing(self):
     moves = MovesFile({'-i': os.path.join(ROOT, 'empty_line_missing.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 6
0
 def test_normal(self):
     moves = MovesFile({'-i': os.path.join(ROOT, 'normal.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 7
0
 def test_normal(self):
     moves = MovesFile({'-i': os.path.join(ROOT, 'normal.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 8
0
 def test_too_many_lines_between(self):
     moves = MovesFile(
         {'-i': os.path.join(ROOT, 'too_many_lines_between.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))
Ejemplo n.º 9
0
 def test_empty_line_missing(self):
     moves = MovesFile({'-i': os.path.join(ROOT, 'empty_line_missing.dat')})
     moves_list = list(moves.parse())
     self.assertEqual(4, len(moves_list))