Ejemplo n.º 1
0
 def test_no_such_line(self):
     extractor = passgithelper.SpecificLineExtractor(3, 6)
     assert extractor.get_value(
         'foo', ['line 1', 'user: bar', 'more lines']) is None
Ejemplo n.º 2
0
 def test_no_such_line(self):
     extractor = passgithelper.SpecificLineExtractor(3, 6)
     assert extractor.get_value("foo", ["line 1", "user: bar", "more lines"]) is None
Ejemplo n.º 3
0
 def test_smoke(self):
     extractor = passgithelper.SpecificLineExtractor(1, 6)
     assert extractor.get_value(
         'foo', ['line 1', 'user: bar', 'more lines']) == 'bar'
Ejemplo n.º 4
0
 def test_smoke(self):
     extractor = passgithelper.SpecificLineExtractor(1, 6)
     assert (
         extractor.get_value("foo", ["line 1", "user: bar", "more lines"]) == "bar"
     )