test_artefact.py 266 B

1234567
  1. from mocka.artefact import Artefact
  2. def test_artefact():
  3. artefact = Artefact("inline", "Don't be evil!", "motto.txt", "text/plain")
  4. assert artefact.as_dict() == {'type': 'inline', 'content': "Don't be evil!", 'name': 'motto.txt', 'encoding': 'text/plain'}