def test_read_from_filehandle(self): fh = io.StringIO('statusbar white on black\n' 'loginform black on white') self.assertEqual( theme.read(fh), ['statusbar white on black', 'loginform black on white'])
def test_read_from_iterable(self): lines = ('statusbar white on black', 'loginform black on white') self.assertEqual(theme.read(lines), list(lines))