def test_read_batch_urls(self):
    f = io.StringIO('ï»¿ foo\n            bar\r\n            baz\n            # More after this line\r\n            ; or after this\n            bam')
    self.assertEqual(read_batch_urls(f), ['foo', 'bar', 'baz', 'bam'])
def test_read_batch_urls(self):
    f = io.StringIO('ï»¿ foo\n            bar\r\n            baz\n            # More after this line\r\n            ; or after this\n            bam')
    self.assertEqual(read_batch_urls(f), ['foo', 'bar', 'baz', 'bam'])