SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 114 forks source link

Fix string formatting issue for Tests : tests.foreman.ui.test_activationkey.ActivationKey.test_[usage_limit, positive_delete_activation_key_5] #2347

Closed jyejare closed 9 years ago

jyejare commented 9 years ago

Failing due to : String Formatting issue in assertEqual methods message.

Stacktrace:

 File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/home/jenkins/workspace/satellite6-automation-downstream-rhel66-ui/tests/foreman/ui/test_activationkey.py", line 1031, in test_usage_limit
    .format(result.stderr, result.return_code)
'\'ascii\' codec can\'t encode character u\'\\u201c\' in position 298: ordinal not in range(128)

File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/home/jenkins/workspace/satellite6-automation-downstream-rhel66-ui/tests/foreman/ui/test_activationkey.py", line 575, in test_positive_delete_activation_key_5
    .format(result.stderr, result.return_code)
'\'ascii\' codec can\'t encode character u\'\\u201c\' in position 298: ordinal not in range(128)
jyejare commented 9 years ago

This issue has been fixed in PR #2346 .