File: testWrongFileExtension.py

package info (click to toggle)
atril 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,852 kB
  • sloc: ansic: 67,359; cpp: 2,719; makefile: 1,589; xml: 745; python: 333; sh: 111; perl: 54
file content (18 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python3

# Test opening a file with wrong extenstion.

from testCommon import run_app, bail

from dogtail.procedural import *

try:

	run_app(file='test-mime.bin')

	# Close xreader
	click('File', roleName='menu')
	click('Close', roleName='menu item')

except:
	bail()