Exemplo n.º 1
0
 def create_problem(self):
     prob = problem.Runtime(reason='Front fell off')
     prob._proxy = self.proxy
     return prob
Exemplo n.º 2
0
 def test_items(self):
     prob = problem.Runtime('Massive error')
     assert prob.items() == prob._data.items()
Exemplo n.º 3
0
 def test_items(self):
     prob = problem.Runtime('Massive error')
     tools.eq_(prob.items(), prob._data.items())
Exemplo n.º 4
0
import problem

prob = problem.Runtime(reason='egg_error_message: assertion "error" failed', )

prob.add_current_process_data()
prob.add_current_environment()
prob.save()
Exemplo n.º 5
0
import problem

prob = problem.Runtime(
    reason='Error getting devices:'
    'GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: '
    'No such interface `org.gnome.SettingsDaemon.Power` on object at path '
    '/org/gnome/SettingsDaemon/Power')

prob.add_current_process_data()
prob.custom_data = 'any'
prob['dict_access_example'] = 'works'

print(prob)
print('')

for key, value in prob.items():
    print('{0}={1}'.format(key, value))

print('Identifier:', prob.save())