Ejemplo n.º 1
0
    def test_get_status_calls_controller_status(self, *args):
        self.setup_mocks(args)
        api = PrintAPI(self.default_config)
        with patch('__builtin__.open',
                   mock_open(read_data='bibble'),
                   create=True):
            api.print_gcode("Spam")
            api.get_status()

        self.mock_controller.get_status.assert_called_with()