[modules/gpmdp] Make unit tests run through
* full_text needs to return a string *always* * relax full_text check to also allow unicode results
This commit is contained in:
parent
3d1f4ddf25
commit
d3fc5094f8
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class TestGenericModules(unittest.TestCase):
|
|||
assertWidgetAttributes(self, widget)
|
||||
widget.set("variable", "value")
|
||||
self.assertEquals(widget.get("variable", None), "value")
|
||||
self.assertTrue(isinstance(widget.full_text(), str))
|
||||
self.assertTrue(isinstance(widget.full_text(), str) or isinstance(widget.full_text(), unicode))
|
||||
|
||||
@mock.patch("subprocess.Popen")
|
||||
def test_update(self, mock_output):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue