Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/e/l/eliot-0.3.0/eliot/filter.py   eliot(Download)
if __name__ == '__main__':
    import eliot.filter
    eliot.filter.main()
 
 

src/e/l/eliot-0.3.0/eliot/tests/test_filter.py   eliot(Download)
 
 
from eliot.filter import EliotFilter, main, USAGE
from eliot import tai64n
 
        """
        sys = FakeSys(["eliotfilter", "J[0]"], b"[1, 2]\n[4, 5]\n")
        main(sys)
        self.assertEqual(sys.stdout.getvalue(), b"1\n4\n")
 
        """
        sys = FakeSys(["eliotfilter", "J[0]"], b"[1, 2]\n[4, 5]\n")
        result = main(sys)
        self.assertEqual(result, 0)
 
        """
        sys = FakeSys(["eliotfilter"], b"")
        result = main(sys)
        self.assertEqual(sys.stderr.getvalue(), USAGE)
        self.assertEqual(result, 1)