Back to index

apport  2.3
Public Member Functions | Static Public Attributes
test_backend_rpm.T Class Reference

List of all members.

Public Member Functions

def test_get_dependencies
def test_get_header
def test_get_headers_by_tag
def test_get_system_architecture
def test_get_version

Static Public Attributes

int stderr = 0

Detailed Description

Definition at line 13 of file test_backend_rpm.py.


Member Function Documentation

get_dependencies().

Definition at line 15 of file test_backend_rpm.py.

00015 
00016     def test_get_dependencies(self):
00017         '''get_dependencies().'''
00018 
00019         deps = impl.get_dependencies('bash')
00020         self.assertNotEqual(deps, [])

_get_header().

Definition at line 21 of file test_backend_rpm.py.

00021 
00022     def test_get_header(self):
00023         '''_get_header().'''
00024 
00025         hdr = impl._get_header('alsa-utils')
00026         self.assertEqual(hdr['n'], 'alsa-utils')

_get_headers_by_tag().

Definition at line 27 of file test_backend_rpm.py.

00027 
00028     def test_get_headers_by_tag(self):
00029         '''_get_headers_by_tag().'''
00030 
00031         headersByTag = impl._get_headers_by_tag('basenames', '/bin/bash')
00032         self.assertEqual(len(headersByTag), 1)
00033         self.assertTrue(headersByTag[0]['n'].startswith('bash'))

get_system_architecture().

Definition at line 34 of file test_backend_rpm.py.

00034 
00035     def test_get_system_architecture(self):
00036         '''get_system_architecture().'''
00037 
00038         arch = impl.get_system_architecture()
00039         # must be nonempty without line breaks
00040         self.assertNotEqual(arch, '')
00041         self.assertTrue('\n' not in arch)

get_version().

Definition at line 42 of file test_backend_rpm.py.

00042 
00043     def test_get_version(self):
00044         '''get_version().'''
00045 
00046         ver = impl.get_version('bash')
00047         self.assertNotEqual(ver, None)
00048         ver = impl.get_version('alsa-utils')
00049         self.assertNotEqual(ver, None)
00050 
00051 
00052 # only execute if rpm is available
try:

Member Data Documentation

int test_backend_rpm.T.stderr = 0 [static]

Definition at line 54 of file test_backend_rpm.py.


The documentation for this class was generated from the following file: