Exemplo n.º 1
0
 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'])
Exemplo n.º 2
0
 def test_read_from_iterable(self):
     lines = ('statusbar white on black', 'loginform black on white')
     self.assertEqual(theme.read(lines), list(lines))