Exemple #1
0
 def test_to_lxml_full(self):
     log = Stream('path', 123, False, ['gzip', 'bzip2'])
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
Exemple #2
0
 def test_to_lxml_cycle_gzip(self):
     log = Stream(cycle_gzip=False)
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
Exemple #3
0
 def test_to_lxml_filters(self):
     log = Stream(filters=['gzip', 'bzip2'])
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
Exemple #4
0
 def test_to_lxml_location(self):
     log = Stream(location='path')
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
Exemple #5
0
 def test_to_lxml_cycle(self):
     log = Stream(cycle=123)
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
 def test_to_lxml_full(self):
     log = Stream('path', 123, False, ['gzip', 'bzip2'])
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
 def test_to_lxml_filters(self):
     log = Stream(filters = ['gzip', 'bzip2'])
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
 def test_to_lxml_cycle_gzip(self):
     log = Stream(cycle_gzip = False)
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
 def test_to_lxml_cycle(self):
     log = Stream(cycle = 123)
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)
 def test_to_lxml_location(self):
     log = Stream(location = 'path')
     copy = Stream.from_lxml_element(log.to_lxml_element())
     self.assertEqual(log, copy)