File: test_formats.py

package info (click to toggle)
construct 2.10.68%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,812 kB
  • sloc: python: 11,793; makefile: 135
file content (41 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from tests.declarativeunittest import *
from construct import *
from construct.lib import *

from deprecated_gallery import  *


def test_png():
    commondumpdeprecated(png_file, "sample.png")

def test_emf():
    commondumpdeprecated(emf_file, "emf1.emf")

def test_bitmap():
    commondumpdeprecated(bitmap_file, "bitmap1.bmp")
    commondumpdeprecated(bitmap_file, "bitmap4.bmp")
    commondumpdeprecated(bitmap_file, "bitmap8.bmp")
    commondumpdeprecated(bitmap_file, "bitmap24.bmp")

def test_wmf():
    commondumpdeprecated(wmf_file, "wmf1.wmf")

def test_gif():
    commondumpdeprecated(gif_file, "sample.gif")

def test_mbr():
    commondumpdeprecated(mbr_format, "mbr1")

def test_cap():
    commondumpdeprecated(cap_file, "cap2.cap")

def test_snoop():
    commondumpdeprecated(snoop_file, "snoop1")

def test_pe32():
    commondumpdeprecated(pe32_file, "python.exe")
    commondumpdeprecated(pe32_file, "NOTEPAD.EXE")
    commondumpdeprecated(pe32_file, "sqlite3.dll")

def test_elf32():
    commondumpdeprecated(elf32_file, "ctypes.so")