def test_title_set_when_not_none_given(self): given_message = "given_message" diag = StackSelectorDialog(main_window=FakeMainWindowView(), title=given_message) self.assertEqual(given_message, diag.windowTitle())
def test_title_not_set_when_none_given(self): diag = StackSelectorDialog(main_window=FakeMainWindowView(), title=None) self.assertEqual("", diag.windowTitle())