From 108f6850eb6e815dbe6a272ed660e1997c672cd8 Mon Sep 17 00:00:00 2001 From: "Christian T. Jacobs" Date: Sun, 23 Apr 2017 19:50:53 +0100 Subject: [PATCH] "result" -> "present" --- tests/test_logbook.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_logbook.py b/tests/test_logbook.py index d54fa83..6fda5b7 100644 --- a/tests/test_logbook.py +++ b/tests/test_logbook.py @@ -74,20 +74,20 @@ class TestLogbook(unittest.TestCase): iter = model.get_iter(path) self.logbook.application.toolbar.filter_source.get_text.return_value = "" - result = self.logbook.filter_by_callsign(model, iter, data=None) - assert(result) # Show all the callsigns. + present = self.logbook.filter_by_callsign(model, iter, data=None) + assert(present) # Show all the callsigns. self.logbook.application.toolbar.filter_source.get_text.return_value = "MYCALL" - result = self.logbook.filter_by_callsign(model, iter, data=None) - assert(result) # "MYCALL" is present. + present = self.logbook.filter_by_callsign(model, iter, data=None) + assert(present) # "MYCALL" is present. self.logbook.application.toolbar.filter_source.get_text.return_value = "MY" - result = self.logbook.filter_by_callsign(model, iter, data=None) - assert(result) # "MY" is present in "MYCALL" + present = self.logbook.filter_by_callsign(model, iter, data=None) + assert(present) # "MY" is present in "MYCALL" self.logbook.application.toolbar.filter_source.get_text.return_value = "HELLOWORLD" - result = self.logbook.filter_by_callsign(model, iter, data=None) - assert(not result) # "HELLOWORLD" is not present in "MYCALL" + present = self.logbook.filter_by_callsign(model, iter, data=None) + assert(not present) # "HELLOWORLD" is not present in "MYCALL" if(__name__ == '__main__'): unittest.main()