[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:
Tobi-wan Kenobi 2017-01-02 22:26:57 +01:00
parent 3d1f4ddf25
commit d3fc5094f8
2 changed files with 2 additions and 2 deletions

View file

@ -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):