(self, chat1, data, lp)
| 359 | assert not msg.is_out_mdn_received() |
| 360 | |
| 361 | def test_message_image(self, chat1, data, lp): |
| 362 | with pytest.raises(ValueError): |
| 363 | chat1.send_image(path="notexists") |
| 364 | fn = data.get_path("d.png") |
| 365 | lp.sec("sending image") |
| 366 | chat1.account._evtracker.consume_events() |
| 367 | msg = chat1.send_image(fn) |
| 368 | chat1.account._evtracker.get_matching("DC_EVENT_NEW_BLOB_FILE") |
| 369 | assert msg.is_image() |
| 370 | assert msg |
| 371 | assert msg.id > 0 |
| 372 | assert os.path.exists(msg.filename) |
| 373 | assert msg.filemime == "image/png" |
| 374 | |
| 375 | @pytest.mark.parametrize( |
| 376 | ("fn", "typein", "typeout"), |
nothing calls this directly
no test coverage detected