@@ -0,0 +1,968 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*- %0A%22%22%22Requirements specification for the factory%22%22%22%0A%0A__author__ = 'Filipp Frizzy'%0A__credits__ = %5B%22Filipp Frizzy%22%5D%0A__license__ = %22MIT%22%0A__version__ = %22%22%0A__maintainer__ = %22Filipp Frizzy%22%0A__email__ = %22filipp.s.frizzy@gmail.com%22%0A__status__ = %22Development%22%0A%0Aimport os%0Aimport sys%0Aimport imp%0Aimport pytest%0Afactory = imp.load_source(%0A    'factory',%0A    os.path.join(%0A        os.path.dirname(os.path.realpath(__file__)),%0A        '../factory.py'%0A        )%0A)%0A%0A%0Adef test_should_write_command_stdout_to_sys_stdout(capsys):%0A    sys.argv = %5B'factory.py', %22run:echo %5C%22hello world!%5C%22%22%5D%0A    factory.main()%0A    out, err = capsys.readouterr()%0A    assert %22hello world!%22 in out%0A%0A%0Adef test_should_write_command_stderr_to_sys_stderr(capsys):%0A    sys.argv = %5B'factory.py', 'run:qwertyuiop'%5D%0A    factory.main()%0A    out, err = capsys.readouterr()%0A    assert %22/bin/sh: 1: qwertyuiop: not found%22 in err%0A    %0A%0Aif __name__ == '__main__':%0A    pytest.main()%0A

add first tests as a spec