~tualatrix/ubuntu-tweak/trunk

« back to all changes in this revision

Viewing changes to tests/test_app.py

  • Committer: Tualatrix Chou
  • Date: 2012-05-12 15:24:42 UTC
  • mfrom: (1842.1.3 ubuntu-tweak-0.7.x)
  • Revision ID: tualatrix@gmail.com-20120512152442-3dfde9gh5mqc8jv4
Fix Invalid values for resetting fonts and all other tests (Bug: #998411)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                                                    'tweaks': 1,
20
20
                                                    'admins': 2,
21
21
                                                    'janitor': 3,
 
22
                                                    'search': 5,
22
23
                                                    'wait': 4})
23
24
        self.assertEqual(self.window.navigation_dict, {'tweaks': (None, None)})
24
25
 
25
26
        # tweaks->Nautilus
26
27
        self.window._load_module('Nautilus')
27
 
        self.assertEqual(self.window.loaded_modules, {'Nautilus': 5})
 
28
        self.assertEqual(self.window.loaded_modules, {'Nautilus': 6})
28
29
        self.assertEqual(self.window.current_feature, 'tweaks')
29
30
        self.assertEqual(self.window.navigation_dict, {'tweaks': ('Nautilus', None)})
30
31
        # Nautilus->tweaks
32
33
        self.assertEqual(self.window.current_feature, 'tweaks')
33
34
        self.assertEqual(self.window.navigation_dict, {'tweaks': (None, 'Nautilus')})
34
35
        # tweaks->Compiz
35
 
        self.window._load_module('Compiz')
 
36
        self.window._load_module('Window')
36
37
        self.assertEqual(self.window.current_feature, 'tweaks')
37
 
        self.assertEqual(self.window.navigation_dict, {'tweaks': ('Compiz', None)})
 
38
        self.assertEqual(self.window.navigation_dict, {'tweaks': ('Window', None)})
38
39
 
39
40
    def todo(self):
40
41
        #TODO toggled has different behavir