Exemple #1
0
 def test_error(self):
     stream = BytesIO(b'foo\n')
     stream.name = 'fred'
     it = config.parse_vexrc(stream, {})
     try:
         next(it)
     except config.InvalidConfigError as error:
         rendered = str(error)
     assert rendered == "errors in 'fred', lines [0]"
Exemple #2
0
 def test_close(self):
     stream = BytesIO(b'a=b\nc=d\n')
     it = config.parse_vexrc(stream, {})
     next(it)
     it.close()