From e6666becb3f519a4ed42d088466e57a778b185cf Mon Sep 17 00:00:00 2001 From: Tobi-wan Kenobi Date: Thu, 8 Dec 2016 10:17:25 +0100 Subject: [PATCH] [tests/theme] Refactor --- tests/test_theme.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_theme.py b/tests/test_theme.py index 746f95b..23ad13c 100644 --- a/tests/test_theme.py +++ b/tests/test_theme.py @@ -6,7 +6,8 @@ from bumblebee.error import ThemeLoadError class TestTheme(unittest.TestCase): def setUp(self): - pass + self.nonexistentThemeName = "no-such-theme" + self.invalidThemeName = "invalid" def test_load_valid_theme(self): try: @@ -16,10 +17,10 @@ class TestTheme(unittest.TestCase): def test_load_nonexistent_theme(self): with self.assertRaises(ThemeLoadError): - Theme("no-such-theme") + Theme(self.nonexistentThemeName) def test_load_invalid_theme(self): with self.assertRaises(ThemeLoadError): - Theme("invalid") + Theme(self.invalidThemeName) # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4