(self)
| 56 | ) |
| 57 | |
| 58 | def test_build_streaming(self): |
| 59 | script = io.BytesIO('\n'.join([ |
| 60 | 'FROM busybox', |
| 61 | 'RUN mkdir -p /tmp/test', |
| 62 | 'EXPOSE 8080', |
| 63 | 'ADD https://dl.dropboxusercontent.com/u/20637798/silence.tar.gz' |
| 64 | ' /tmp/silence.tar.gz' |
| 65 | ]).encode('ascii')) |
| 66 | stream = self.client.build(fileobj=script, decode=True) |
| 67 | logs = [] |
| 68 | for chunk in stream: |
| 69 | logs.append(chunk) |
| 70 | assert len(logs) > 0 |
| 71 | |
| 72 | def test_build_from_stringio(self): |
| 73 | return |